From: Matthias Maier Date: Thu, 26 Mar 2015 22:28:00 +0000 (+0100) Subject: Testsuite: Bugfix: Do not forget to export SOURCE_DIR for tests X-Git-Tag: v8.3.0-rc1~352^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4298930f5a8a249052d34c81396a9af0fc751c89;p=dealii.git Testsuite: Bugfix: Do not forget to export SOURCE_DIR for tests --- 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}" )