[CMake] Cmake 2.8.2 Bug under windows
Brad King
brad.king at kitware.com
Fri Aug 13 14:24:47 EDT 2010
On 8/12/2010 8:36 PM, J Decker wrote:
> cmake -G "MinGW Makefiles" /test
The path "/test" is not a valid full path on windows.
That syntax is used by many tools for command line options.
If I use a backslash instead:
cmake -G "MinGW Makefiles" \test
I get
CMake Error: The source directory "C:/build/test" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
IMO the only bug here is that CMake does not complain that
the given path is malformed. Take a look at Source/cmake.cxx
in the method "cmake::SetDirectoriesFromFile". The path should
be the argument to this method. Somewhere in this function
before it does a call to SetHomeDirectory should be taught to
catch this.
-Brad
More information about the CMake
mailing list