]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix cmake requirements.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 1 Jul 2023 18:51:01 +0000 (12:51 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 2 Jul 2023 02:29:13 +0000 (20:29 -0600)
examples/step-86/CMakeLists.txt

index 209c9a0d5ef40b3535d5a47d5f2e24bee54bd99d..acf8b260fe61d6b8d3ce8e42a1e646cff53ae815 100644 (file)
@@ -34,6 +34,21 @@ if(NOT ${deal.II_FOUND})
     )
 endif()
 
+#
+# Are all dependencies fulfilled?
+#
+if(NOT DEAL_II_WITH_PETSC OR DEAL_II_PETSC_WITH_COMPLEX) # keep in one line
+  message(FATAL_ERROR "
+Error! This tutorial requires a deal.II library that was configured with the following options:
+    DEAL_II_WITH_PETSC = ON
+    DEAL_II_PETSC_WITH_COMPLEX = OFF
+However, the deal.II library found at ${DEAL_II_PATH} was configured with these options:
+    DEAL_II_WITH_PETSC = ${DEAL_II_WITH_PETSC}
+    DEAL_II_PETSC_WITH_COMPLEX = ${DEAL_II_PETSC_WITH_COMPLEX}
+This conflicts with the requirements."
+    )
+endif()
+
 deal_ii_initialize_cached_variables()
 project(${TARGET})
 deal_ii_invoke_autopilot()

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.