From 3db1641e72326ae6293a0603d46066cd33023493 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 17 Jan 2016 16:34:02 -1000 Subject: [PATCH] Minor CMakeLists.txt addition --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fd163e5a..02db21977 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)