2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-04 18:55:34 +00:00

Minor CMakeLists.txt addition

This commit is contained in:
Jack Andersen 2016-01-17 16:34:02 -10:00
parent 1f86c82165
commit 3db1641e72

View File

@ -16,7 +16,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
include_directories(/usr/local/include)
endif()
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
if(("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
option(USE_LD_GOLD "Link with GNU Gold and enable LTO" ON)
else()
option(USE_LD_GOLD "Link with GNU Gold and enable LTO" OFF)