]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix cmake expand_instantiations ldgold workaround 1816/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 30 Oct 2015 16:12:26 +0000 (12:12 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 30 Oct 2015 16:12:26 +0000 (12:12 -0400)
Avoid cmake error if DEAL_II_LINKER_FLAGS is empty.

cmake/scripts/CMakeLists.txt

index a51f8cb04c42285befeaca487d16533cd84f3e9a..5db06b730f19297abdc5e129c592b5dc8527419d 100644 (file)
@@ -27,7 +27,8 @@ ADD_EXECUTABLE(expand_instantiations_exe expand_instantiations.cc)
 # linker flag, filtering this one command out of the list of flags
 # does not harm either.
 #
-STRING(REPLACE "-fuse-ld=gold" "" _expand_instantiations_link_flags ${DEAL_II_LINKER_FLAGS} )
+STRING(REPLACE "-fuse-ld=gold" "" _expand_instantiations_link_flags "${DEAL_II_LINKER_FLAGS}" )
+
 SET_TARGET_PROPERTIES(expand_instantiations_exe PROPERTIES
   LINK_FLAGS "${_expand_instantiations_link_flags}"
   LINKER_LANGUAGE "CXX"

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.