Hi all,
when cmake is run without specifying the build type using -D
CMAKE_BUILD_TYPE, it is the Debug mode that is selected as
the default. I would like to find a way to use Release as the default
value when the user does not specify any build
type in the cmake command line.
From one of my previous post concerning CMAKE_INSTALL_PREFIX variable,
I was thinking to use a similar approach i.e.:
project(Foo)
if (CMAKE_BUILD_TYPE_INITIALIZED_TO_DEFAULT)
set(CMAKE_BUILD_TYPE Release)
endif
but cmake still sets CMAKE_BUILD_TYPE to Debug in the CMakeCache.txt file.
Would you have any idea about what is wrong with my implementation ?
thanks a lot.
Eric
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake