Axel Roebel wrote:

I am not using Xcode myself but a very brief look into the
cmake source reveals that the variable

CMAKE_CONFIGURATION_TYPES

is used instead of CMAKE_BUILD_TYPE. Now the default value for CMAKE_CONFIGURATION_TYPES is "Debug;Release;MinSizeRel;RelWithDebInfo".

Simply setting CMAKE_CONFIGURATION_TYPES to

 "Release;Debug;MinSizeRel;RelWithDebInfo"

was sufficient to convince Xcode to build with release instead of Debug mode by default.

Nice find... It will not work for MS IDE, but sounds like it works for Xcode.
That should go in the wiki....

-Bill


_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to