[CMake] how to determine debug or release mode?

Rolf Eike Beer eike at sf-mail.de
Wed Mar 14 04:32:58 EDT 2012


> how determine build type in cmake like
> if (CMAKE_BUILD_TYPE EQUAL "DEBUG")
>     message("debug mode")
> endif (CMAKE_BUILD_TYPE EQUAL "DEBUG")

if (CMAKE_BUILD_TYPE STREQUAL "Debug")


More information about the CMake mailing list