From: Timo Heister Date: Fri, 30 Oct 2015 16:12:26 +0000 (-0400) Subject: fix cmake expand_instantiations ldgold workaround X-Git-Tag: v8.4.0-rc2~265^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fac82d0f333b16316be5c87fc9f211d94b8df49c;p=dealii.git fix cmake expand_instantiations ldgold workaround Avoid cmake error if DEAL_II_LINKER_FLAGS is empty. --- diff --git a/cmake/scripts/CMakeLists.txt b/cmake/scripts/CMakeLists.txt index a51f8cb04c..5db06b730f 100644 --- a/cmake/scripts/CMakeLists.txt +++ b/cmake/scripts/CMakeLists.txt @@ -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"