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" <d3c...@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
_______________________________________________ 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