diff options
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ac81aa..5944545 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() |