]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix, append definitions in macro DEAL_II_ADD_DEFINITIONS instead of overwri...
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 11 Mar 2013 13:50:03 +0000 (13:50 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 11 Mar 2013 13:50:03 +0000 (13:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@28850 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_deal_ii_add_definitions.cmake

index b4f49ca1a888a4c48dd4bcdb9abc58449cfb7572..d626feafc85799a0bbb788ff890ff92dcd44048e 100644 (file)
@@ -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()
 

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.