]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Concatenate subsequent compiler flag strings with a space
authorMatthias Maier <tamiko@43-1.org>
Fri, 30 Jun 2017 13:10:39 +0000 (08:10 -0500)
committerMatthias Maier <tamiko@43-1.org>
Fri, 30 Jun 2017 13:10:39 +0000 (08:10 -0500)
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

index 5db5f4a563960b88f207804032df1e26ed8f8f91..c3e5181762337d1fbd6366baaf2ad0f42485ea93 100644 (file)
@@ -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}}"

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.