From: Matthias Maier Date: Fri, 30 Jun 2017 13:10:39 +0000 (-0500) Subject: CMake: Concatenate subsequent compiler flag strings with a space X-Git-Tag: v9.0.0-rc1~1461^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7948cd0e1c7f50066c71a2641100eaa54f473db3;p=dealii.git 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. --- 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}}"