]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: also update BASE_LINKER_FLAGS* when dropping -fuse-ld=... 7839/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 19 Mar 2019 21:37:34 +0000 (16:37 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 19 Mar 2019 21:37:34 +0000 (16:37 -0500)
cmake/setup_finalize.cmake

index 1df5d7b27141a541a76e21fe29defea9beb75584..716093a7b3b58141f91acd7ed8f31f16597b7a4c 100644 (file)
@@ -99,12 +99,14 @@ FOREACH(build ${DEAL_II_BUILD_TYPES})
       "Unable to compile a simple test program. "
       "Trying to drop \"${_linker_flag}\" from the linker flags."
       )
-    STRING(REPLACE "${_linker_flag}" "${_replacement_flag}"
-      DEAL_II_LINKER_FLAGS "${DEAL_II_LINKER_FLAGS}"
-      )
-    STRING(REPLACE "${_linker_flag}" "${_replacement_flag}"
-      DEAL_II_LINKER_FLAGS_${build} "${DEAL_II_LINKER_FLAGS_${_build}}"
-      )
+    FOREACH(_flags
+        DEAL_II_LINKER_FLAGS DEAL_II_LINKER_FLAGS_${build}
+        BASE_LINKER_FLAGS BASE_LINKER_FLAGS_${build}
+        )
+      STRING(REPLACE "${_linker_flag}" "${_replacement_flag}"
+        ${_flags} "${${_flags}}"
+        )
+    ENDFOREACH()
     SET(${_variable} FALSE CACHE INTERNAL "" FORCE)
     SET(${_variable} FALSE)
   ENDMACRO()

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.