]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use debug flags when checking for compress-debug-sections 7507/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 5 Dec 2018 14:38:29 +0000 (15:38 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 19 Jan 2019 22:34:49 +0000 (23:34 +0100)
cmake/checks/check_02_compiler_features.cmake

index 62741dc8e0a07a4540ec7463a8d44733af13d273..7ac38fe19f3cbffc5c5ad3d2fd672661330a3bac 100644 (file)
@@ -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()
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.