From fac82d0f333b16316be5c87fc9f211d94b8df49c Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 30 Oct 2015 12:12:26 -0400 Subject: [PATCH] fix cmake expand_instantiations ldgold workaround Avoid cmake error if DEAL_II_LINKER_FLAGS is empty. --- cmake/scripts/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.5