diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ac81aaf..5944545c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,10 +183,9 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif() -if(CMAKE_BUILD_TYPE EQUAL Debug) +if(CMAKE_BUILD_TYPE STREQUAL Debug) set(CMAKE_CXX_FLAGS "-g") -endif() -if(CMAKE_BUILD_TYPE EQUAL Release) +elseif(CMAKE_BUILD_TYPE STREQUAL Release) set(CMAKE_CXX_FLAGS "-O3 -flto") endif()