]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Testsuite: Silence a warning 707/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 30 Mar 2015 13:55:21 +0000 (15:55 +0200)
committerMatthias Maier <tamiko@43-1.org>
Mon, 30 Mar 2015 13:55:21 +0000 (15:55 +0200)
Silence a warning that occurse when "DEAL_II_PICKUP_TESTS()" is not called
within the test subprojects

tests/setup_testsubproject.cmake

index 8eaef3ef6597ba8b0e04f9467ea25a813ac8d904..305133c83e70ce75b675ee68625f188052930ea8 100644 (file)
@@ -6,8 +6,13 @@ DEAL_II_INITIALIZE_CACHED_VARIABLES()
 #
 # Silence warnings:
 #
-FOREACH(_var MPIEXEC MPIEXEC_NUMPROC_FLAG MPIEXEC_POSTFLAGS MPIEXEC_PREFLAGS)
-  SET(${_var} ${${_var}})
+FOREACH(_var
+  DIFF_DIR NUMDIFF_DIR TEST_DIFF TEST_PICKUP_REGEX TEST_TIME_LIMIT MPIEXEC
+  MPIEXEC_NUMPROC_FLAG MPIEXEC_PREFLAGS MPIEXEC_POSTFLAGS
+  )
+  IF(DEFINED ${_var})
+    SET(_bogus "${${_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.