Fixed checking for build type

This commit is contained in:
John-Gee 2019-01-06 05:51:44 -08:00
parent 64ab8302cb
commit 5d364789af
1 changed files with 2 additions and 3 deletions

View File

@ -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()