[CMake] CMAKE_BUILD_TYPE should start as a drop-list option

Philip Lowman philip at yhbt.com
Tue Mar 2 13:41:18 EST 2010


The second line seems like a good idea to me.  The user can always modify
the property in their code if they have custom build types.

The first line seems like a bad idea.  I think the default build type should
be left to the project.  Currently you can set it manually before
project().  I think a variable you could set before project() which
initialized the cache variable for you isn't a bad idea so long as it says
next to it in the docs not available in 2.8.

On Mar 1, 2010 9:44 PM, "J Decker" <d3ck0r at gmail.com> wrote:

set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
     "Set build type")
 set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
              "Debug" "Release" "MinSizeRel" "RelWithDebInfo")


This could be added to some default startup macro, no?
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100302/0392a2b5/attachment.htm>


More information about the CMake mailing list