From: Matthias Maier Date: Thu, 17 Aug 2017 05:15:00 +0000 (-0500) Subject: CMake: Bugfix: Use correct cmake variable in external projects X-Git-Tag: v9.0.0-rc1~1224^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12609c9cf49713ff8d407048665fa8d3f11ba573;p=dealii.git CMake: Bugfix: Use correct cmake variable in external projects In macros for external projects we have to use DEAL_II_USER_DEFINITIONS instead of DEAL_II_DEFINITIONS --- diff --git a/cmake/macros/macro_deal_ii_setup_target.cmake b/cmake/macros/macro_deal_ii_setup_target.cmake index b7226f75d4..f642a3f92e 100644 --- a/cmake/macros/macro_deal_ii_setup_target.cmake +++ b/cmake/macros/macro_deal_ii_setup_target.cmake @@ -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)