]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix, use APPEND_STRING for cxxflags instead of APPEND
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 10 Mar 2013 09:37:48 +0000 (09:37 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 10 Mar 2013 09:37:48 +0000 (09:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@28846 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_deal_ii_setup_target.cmake

index beb31a8bccbf45958f47b8a9d0f4edca1135683d..ef17eb7e7fca95fa7d32773a8007b53c9ef556ba 100644 (file)
@@ -51,8 +51,8 @@ MACRO(DEAL_II_SETUP_TARGET _target)
   SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
     INCLUDE_DIRECTORIES "${DEAL_II_INCLUDE_DIRS}"
     )
-  SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
-    LINK_FLAGS "${DEAL_II_LINKER_FLAGS}"
+  SET_PROPERTY(TARGET ${_target} APPEND_STRING PROPERTY
+    LINK_FLAGS " ${DEAL_II_LINKER_FLAGS}"
     )
   SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
     COMPILE_DEFINITIONS "${DEAL_II_USER_DEFINITIONS}"
@@ -96,15 +96,15 @@ MACRO(DEAL_II_SETUP_TARGET _target)
   ENDIF()
 
   IF(_on_debug_build)
-    SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
-      LINK_FLAGS "${DEAL_II_LINKER_FLAGS_DEBUG}"
+    SET_PROPERTY(TARGET ${_target} APPEND_STRING PROPERTY
+      LINK_FLAGS " ${DEAL_II_LINKER_FLAGS_DEBUG}"
       )
     SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
       COMPILE_DEFINITIONS "${DEAL_II_USER_DEFINITIONS_DEBUG}"
       )
   ELSE()
-    SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
-      LINK_FLAGS "${DEAL_II_LINKER_FLAGS_RELEASE}"
+    SET_PROPERTY(TARGET ${_target} APPEND_STRING PROPERTY
+      LINK_FLAGS " ${DEAL_II_LINKER_FLAGS_RELEASE}"
       )
     SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
       COMPILE_DEFINITIONS "${DEAL_II_USER_DEFINITIONS_RELEASE}"

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.