From 12609c9cf49713ff8d407048665fa8d3f11ba573 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 17 Aug 2017 00:15:00 -0500 Subject: [PATCH] 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 --- cmake/macros/macro_deal_ii_setup_target.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5