From: Matthias Maier Date: Mon, 30 Mar 2015 13:55:21 +0000 (+0200) Subject: Testsuite: Silence a warning X-Git-Tag: v8.3.0-rc1~340^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F707%2Fhead;p=dealii.git Testsuite: Silence a warning Silence a warning that occurse when "DEAL_II_PICKUP_TESTS()" is not called within the test subprojects --- diff --git a/tests/setup_testsubproject.cmake b/tests/setup_testsubproject.cmake index 8eaef3ef65..305133c83e 100644 --- a/tests/setup_testsubproject.cmake +++ b/tests/setup_testsubproject.cmake @@ -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() #