> 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")