Fixed CMake messages
authorkhizmax <khizmax@gmail.com>
Thu, 16 Jun 2016 14:13:23 +0000 (17:13 +0300)
committerkhizmax <khizmax@gmail.com>
Thu, 16 Jun 2016 14:13:23 +0000 (17:13 +0300)
CMakeLists.txt

index e2b929f..ffdcf50 100644 (file)
@@ -85,7 +85,7 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
 
 message("Build type -- ${CMAKE_BUILD_TYPE}")
 message("Compiler version: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
-if (CMAKE_BUILD_TYPE MATCHES Debug)
+if (CMAKE_BUILD_TYPE STREQUAL "DEBUG")
   message("Compiler flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG}")
 else()
   message("Compiler flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}")