mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 17:04:01 +00:00
Fix CMAKE_BUILD_TYPE comparison
This commit is contained in:
@@ -16,7 +16,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|||||||
include_directories(/usr/local/include)
|
include_directories(/usr/local/include)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${CMAKE_BUILD_TYPE} STREQUAL "Release" AND ${CMAKE_SYSTEM_NAME} STREQUAL Linux)
|
if(${CMAKE_BUILD_TYPE} AND ${CMAKE_BUILD_TYPE} STREQUAL "Release" AND ${CMAKE_SYSTEM_NAME} STREQUAL Linux)
|
||||||
option(USE_LD_GOLD "Link with GNU Gold and enable LTO" ON)
|
option(USE_LD_GOLD "Link with GNU Gold and enable LTO" ON)
|
||||||
else()
|
else()
|
||||||
option(USE_LD_GOLD "Link with GNU Gold and enable LTO" OFF)
|
option(USE_LD_GOLD "Link with GNU Gold and enable LTO" OFF)
|
||||||
|
|||||||
Reference in New Issue
Block a user