From: Matthias Maier Date: Sat, 28 Sep 2013 09:06:40 +0000 (+0000) Subject: Bugfix: Pass complete state down to subprojects X-Git-Tag: v8.1.0~570^2~168 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67ebaac9efa6710b7abf221e2525d8f7935a8666;p=dealii.git Bugfix: Pass complete state down to subprojects git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30995 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ed2a274888..dd27363bac 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -60,11 +60,9 @@ ENDIF() # # Pass all relevant "TEST_" variables down to the subprojects: # -GET_CMAKE_PROPERTY(_variables VARIABLES) -FOREACH(_var ${_variables}) - IF(_var MATCHES - "^(TEST_DIR|TEST_DIFF|TEST_TIME_LIMIT|TEST_PICKUP_REGEX|NUMDIFF_DIR)$" - ) +FOREACH(_var TEST_DIR TEST_DIFF TEST_TIME_LIMIT TEST_PICKUP_REGEX NUMDIFF_DIR) + LIST(APPEND _options "-U${_var}") + IF(DEFINED ${_var}) LIST(APPEND _options "-D${_var}=${${_var}}") ENDIF() ENDFOREACH()