[CMake] Set default build type in CMakeLists.txt

David Doria daviddoria at gmail.com
Mon Jun 22 11:42:34 EDT 2009


I thought I could set the default build type with the following:

SET(CMAKE_BUILD_TYPE debug)
PROJECT(Test)
ADD_EXECUTABLE(Test Test.cpp)

However, when I run ccmake and then press 'c', the CMAKE_BUILD_TYPE field is
still empty. Is it set and just not showing up? Or has it not been set
properly?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090622/6c6822bf/attachment.htm>


More information about the CMake mailing list