View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015134 | CMake | CMake | public | 2014-09-08 02:47 | 2016-06-10 14:31 | ||||
Reporter | Mattes D | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | Windows | OS | Windows XP | OS Version | 5.1 | ||||
Product Version | CMake 2.8.12.1 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015134: add_subdirectory() fails when CMakeLists.txt in drive root | ||||||||
Description | I'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 Reproduce | Use 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |