[CMake] CMake command line arguments

Gabriel Petrovay gabipetrovay at gmail.com
Sun Mar 6 06:12:58 EST 2011


Hi,

Is there a way to read the arguments that were passed to CMake from
inside a CMakeLists.txt file?

There is a problem that some generators (like "NMake Makefiles") set a
default value for certain variables (like CMAKE_BUILD_TYPE=Debug,
CMAKE_INSTALL_PREFIX=C:\Program Files\${CMAKE_PROJECT_NAME})



More information about the CMake mailing list