On 22. Jul, 2010, at 8:38 , norulez wrote: > How can I find out which build type is used? Because if I didn't define > CMAKE_BUILD_TYPE, this variable is uninitialized.
That depends. For single-configuration generators (i.e. Makefile based), the user has to set CMAKE_BUILD_TYPE. If it is empty, no special configuration options will be used. For multi-configuration generators (VisualStudio, Xcode, etc.), you simply can't know at CMake-time, since the user can change the selection before hitting the build button. What is it that you want to achieve? Probably there's a better way... Michael _______________________________________________ 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