From: maier Date: Sun, 10 Mar 2013 09:37:48 +0000 (+0000) Subject: CMake: Bugfix, use APPEND_STRING for cxxflags instead of APPEND X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9bd06339deaad42301554a63462d5b3724f38cb;p=dealii-svn.git CMake: Bugfix, use APPEND_STRING for cxxflags instead of APPEND git-svn-id: https://svn.dealii.org/trunk@28846 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/macros/macro_deal_ii_setup_target.cmake b/deal.II/cmake/macros/macro_deal_ii_setup_target.cmake index beb31a8bcc..ef17eb7e7f 100644 --- a/deal.II/cmake/macros/macro_deal_ii_setup_target.cmake +++ b/deal.II/cmake/macros/macro_deal_ii_setup_target.cmake @@ -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}"