From: maier Date: Mon, 11 Mar 2013 13:50:03 +0000 (+0000) Subject: CMake: Bugfix, append definitions in macro DEAL_II_ADD_DEFINITIONS instead of overwri... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42369ab4f1d2e2043a63631246f00cc8c02de76f;p=dealii-svn.git CMake: Bugfix, append definitions in macro DEAL_II_ADD_DEFINITIONS instead of overwriting the old ones git-svn-id: https://svn.dealii.org/trunk@28850 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/macros/macro_deal_ii_add_definitions.cmake b/deal.II/cmake/macros/macro_deal_ii_add_definitions.cmake index b4f49ca1a8..d626feafc8 100644 --- a/deal.II/cmake/macros/macro_deal_ii_add_definitions.cmake +++ b/deal.II/cmake/macros/macro_deal_ii_add_definitions.cmake @@ -23,9 +23,8 @@ MACRO(DEAL_II_ADD_DEFINITIONS _name) FOREACH(_build ${DEAL_II_BUILD_TYPES}) STRING(TOLOWER ${_build} _build_lowercase) - GET_TARGET_PROPERTY(_definitions ${_name}.${_build_lowercase} COMPILE_DEFINITIONS) - SET_TARGET_PROPERTIES(${_name}.${_build_lowercase} PROPERTIES - COMPILE_DEFINITIONS "${ARGN};${_macro_definitions}" + SET_PROPERTY(TARGET ${_name}.${_build_lowercase} + APPEND PROPERTY COMPILE_DEFINITIONS "${ARGN}" ) ENDFOREACH()