]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Testsuite: Bugfix: Do not forget to export SOURCE_DIR for tests 693/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 26 Mar 2015 22:28:00 +0000 (23:28 +0100)
committerMatthias Maier <tamiko@43-1.org>
Fri, 27 Mar 2015 08:59:21 +0000 (09:59 +0100)
cmake/macros/macro_deal_ii_add_test.cmake

index e0d220680090c1f6ba20a05e064fc9ca0bb6b1a9..98835b9a35c4ba3bf91235bb6667d0dc5b392cc5 100644 (file)
@@ -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}"
           )
 

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.