mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 09:59:41 -06:00
Merge pull request #357 from John-Gee/master
Fixed checking for build type
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user