X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=CMakeLists.txt;h=ffdcf50c71892aa1a01341378c75c7b41ded6b9d;hb=d55395baed549c738cbf2caa0c0b90d2624eda96;hp=e2b929f9652bf17b87c25f6cd809ce5e32c7f4c4;hpb=baf018a1b13e9488125b1420e493928ea7b544f9;p=libcds.git diff --git a/CMakeLists.txt b/CMakeLists.txt index e2b929f9..ffdcf50c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")