From 174d9bc3acf33b66bb973ffdd4ae596daf74a123 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 30 Mar 2015 15:55:21 +0200 Subject: [PATCH] Testsuite: Silence a warning Silence a warning that occurse when "DEAL_II_PICKUP_TESTS()" is not called within the test subprojects --- tests/setup_testsubproject.cmake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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() # -- 2.39.5