]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Testsuite: Correctly store TEST_PICKUP_REGEX and similar variables in testsuite subpr... 738/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 6 Apr 2015 00:59:01 +0000 (02:59 +0200)
committerMatthias Maier <tamiko@43-1.org>
Mon, 6 Apr 2015 00:59:01 +0000 (02:59 +0200)
tests/setup_testsubproject.cmake

index b91850e8013573ad433e54c80fa3a4515296d5d5..80892765f249a5a9bd97135551b1e04708b3ee4c 100644 (file)
@@ -3,13 +3,9 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED HINTS ${DEAL_II_DIR})
 SET(CMAKE_BUILD_TYPE DebugRelease CACHE STRING "" FORCE)
 DEAL_II_INITIALIZE_CACHED_VARIABLES()
 
-#
-# Silence warnings:
-#
 FOREACH(_var DIFF_DIR NUMDIFF_DIR TEST_PICKUP_REGEX TEST_TIME_LIMIT)
-  IF(DEFINED ${_var})
-    SET(_bogus "${${_var}}")
-  ENDIF()
+  SET_IF_EMPTY(${_var} "${${_var}}")
+  SET(${_var} "${${_var}}" CACHE STRING "" FORCE)
 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.