<p>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.</p>
<p>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.</p>
<p><blockquote type="cite">On Mar 1, 2010 9:44 PM, "J Decker" <<a href="mailto:d3ck0r@gmail.com">d3ck0r@gmail.com</a>> wrote:<br><br>set(CMAKE_BUILD_TYPE "Debug" CACHE STRING<br>
"Set build type")<br>
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS<br>
"Debug" "Release" "MinSizeRel" "RelWithDebInfo")<br>
<br>
<br>
This could be added to some default startup macro, no?<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></p>