]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: do not trigger install during make test 14586/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 19 Dec 2022 16:08:50 +0000 (10:08 -0600)
committerMatthias Maier <tamiko@43-1.org>
Mon, 19 Dec 2022 23:44:29 +0000 (17:44 -0600)
tests/CMakeLists.txt

index 5a26ee7da6ca3c23f455d051988267d04767190a..0a33d87cdcc6877f725bcd71a51d1bddb331ead1 100644 (file)
@@ -168,11 +168,14 @@ if(DEFINED DEAL_II_HAVE_TESTS_DIRECTORY)
     COMMENT "Running quicktests..."
     )
 
-  # Depend on the library target to ensure that deal.II is actually
-  # compiled, as well as on the setup_tests_quick_tests target to ensure
+  # Depend on the library targets (to ensure that deal.II is actually
+  # compiled), as well as on the setup_tests_quick_tests target to ensure
   # that quick tests are actually available.
-  add_dependencies(test library)
   add_dependencies(test setup_tests_quick_tests)
+  foreach(_build ${DEAL_II_BUILD_TYPES})
+    string(TOLOWER ${_build} _build_lowercase)
+    add_dependencies(test ${DEAL_II_NAMESPACE}_${_build_lowercase})
+  endforeach()
 
   #
   # Add a dummy target to make files known to IDEs like qtcreator

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.