From 7948cd0e1c7f50066c71a2641100eaa54f473db3 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 30 Jun 2017 08:10:39 -0500 Subject: [PATCH] CMake: Concatenate subsequent compiler flag strings with a space Otherwise compilation of a target that already has compile flags and is set up with DEAL_II_SETUP_TARGET will fail. --- cmake/macros/macro_deal_ii_setup_target.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/macros/macro_deal_ii_setup_target.cmake b/cmake/macros/macro_deal_ii_setup_target.cmake index 5db5f4a563..c3e5181762 100644 --- a/cmake/macros/macro_deal_ii_setup_target.cmake +++ b/cmake/macros/macro_deal_ii_setup_target.cmake @@ -108,7 +108,7 @@ MACRO(DEAL_II_SETUP_TARGET _target) INCLUDE_DIRECTORIES "${DEAL_II_INCLUDE_DIRS}" ) SET_PROPERTY(TARGET ${_target} APPEND_STRING PROPERTY - COMPILE_FLAGS "${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${_build}}" + COMPILE_FLAGS " ${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${_build}}" ) SET_PROPERTY(TARGET ${_target} APPEND_STRING PROPERTY LINK_FLAGS " ${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${_build}}" -- 2.39.5