]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix: Pass complete state down to subprojects
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 28 Sep 2013 09:06:40 +0000 (09:06 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 28 Sep 2013 09:06:40 +0000 (09:06 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30995 0785d39b-7218-0410-832d-ea1e28bc413d

tests/CMakeLists.txt

index ed2a2748885ed9554113316cd01890169ba1cc3b..dd27363bacd68661da22b062a8e949a00fcca573 100644 (file)
@@ -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()

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.