From 4298930f5a8a249052d34c81396a9af0fc751c89 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 26 Mar 2015 23:28:00 +0100 Subject: [PATCH] Testsuite: Bugfix: Do not forget to export SOURCE_DIR for tests --- cmake/macros/macro_deal_ii_add_test.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/macros/macro_deal_ii_add_test.cmake b/cmake/macros/macro_deal_ii_add_test.cmake index e0d2206800..98835b9a35 100644 --- a/cmake/macros/macro_deal_ii_add_test.cmake +++ b/cmake/macros/macro_deal_ii_add_test.cmake @@ -181,12 +181,16 @@ MACRO(DEAL_II_ADD_TEST _category _test_name _comparison_file) ${_test_name}.cc ${CMAKE_CURRENT_BINARY_DIR}/${_target}/interrupt_guard.cc ) + DEAL_II_SETUP_TARGET(${_target} ${_build}) TARGET_LINK_LIBRARIES(${_target} ${TEST_LIBRARIES} ${TEST_LIBRARIES_${_build}} ) - SET_TARGET_PROPERTIES(${_target} PROPERTIES + SET_PROPERTY(TARGET ${_target} APPEND PROPERTY + COMPILE_DEFINITIONS SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}" + ) + SET_PROPERTY(TARGET ${_target} PROPERTY RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${_target}" ) -- 2.39.5