View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015134CMakeCMakepublic2014-09-08 02:472016-06-10 14:31
ReporterMattes D 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindowsOSWindows XPOS Version5.1
Product VersionCMake 2.8.12.1 
Target VersionFixed in Version 
Summary0015134: add_subdirectory() fails when CMakeLists.txt in drive root
DescriptionI'm using the "subst" command on windows to make my build folder the root of a separate drive. Thus, the cmake file being processed is called "N:\CMakeLists.txt". CMake then fails to process the file, with several errors, all following the pattern:

CMake Error at N://CMakeLists.txt:66 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory "N:/lib/jsoncpp" is not a subdirectory of "N:/". When specifying
  an out-of-tree source a binary directory must be explicitly specified.

CMake Error at N://CMakeLists.txt:76 (get_property):
  get_property DIRECTORY scope provided but requested directory was not
  found. This could be because the directory argument was invalid or, it is
  valid but has not been processed yet.

The very same cmake file, when used in a subfolder, works without a problem.
For your reference, the CMakeLists.txt file being used is this one:
https://github.com/mc-server/MCServer/blob/562b2d1d1de7438bc763d778b56b0743affd1b5b/CMakeLists.txt [^]
Cmake is being called as:
cmake -G "Visual Studio 9 2008" .
Steps To ReproduceUse subst to map a folder containing a project to a separate drive letter. Then use CMake in that drive's root to configure the project. CMake fails with the specified error.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042624)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2014-09-08 02:47 Mattes D New Issue
2016-06-10 14:29 Kitware Robot Note Added: 0042624
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team