From: Daniel Arndt Date: Wed, 5 Dec 2018 14:38:29 +0000 (+0100) Subject: Use debug flags when checking for compress-debug-sections X-Git-Tag: v9.1.0-rc1~422^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8585776724a1e175f0d26038ab087c411ecec4f;p=dealii.git Use debug flags when checking for compress-debug-sections --- diff --git a/cmake/checks/check_02_compiler_features.cmake b/cmake/checks/check_02_compiler_features.cmake index 62741dc8e0..7ac38fe19f 100644 --- a/cmake/checks/check_02_compiler_features.cmake +++ b/cmake/checks/check_02_compiler_features.cmake @@ -269,7 +269,9 @@ ENDIF() IF( (NOT CMAKE_SYSTEM_NAME MATCHES "CYGWIN") AND (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") AND (NOT CMAKE_CXX_COMPILER_ID MATCHES "Intel") ) + ADD_FLAGS(CMAKE_REQUIRED_FLAGS "${DEAL_II_CXX_FLAGS_DEBUG}") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-Wa,--compress-debug-sections") + RESET_CMAKE_REQUIRED() ENDIF()