]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Bugfix: Use correct cmake variable in external projects
authorMatthias Maier <tamiko@43-1.org>
Thu, 17 Aug 2017 05:15:00 +0000 (00:15 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 17 Aug 2017 05:15:00 +0000 (00:15 -0500)
In macros for external projects we have to use
  DEAL_II_USER_DEFINITIONS
instead of
  DEAL_II_DEFINITIONS

cmake/macros/macro_deal_ii_setup_target.cmake

index b7226f75d4d885bad85cd750ce063b8f910be3bd..f642a3f92ec56be109f361c707e6c2e44736eb66 100644 (file)
@@ -127,7 +127,7 @@ MACRO(DEAL_II_SETUP_TARGET _target)
       )
 
     TARGET_COMPILE_DEFINITIONS(${_target}
-      PUBLIC ${DEAL_II_DEFINITIONS} ${DEAL_II_DEFINITIONS_${_build}}
+      PUBLIC ${DEAL_II_USER_DEFINITIONS} ${DEAL_II_USER_DEFINITIONS_${_build}}
       )
 
     IF(DEAL_II_WITH_CUDA)

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.