]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix dependencies. 17360/head
authorMarc Fehling <mafehling.git@gmail.com>
Tue, 23 Jul 2024 11:30:11 +0000 (13:30 +0200)
committerMarc Fehling <mafehling.git@gmail.com>
Tue, 23 Jul 2024 11:30:11 +0000 (13:30 +0200)
examples/step-74/CMakeLists.txt
examples/step-79/CMakeLists.txt
tests/examples/step-29.with_umfpack=true.output [moved from tests/examples/step-29.output with 100% similarity]
tests/examples/step-58.with_umfpack=true.with_complex_values=true.output [moved from tests/examples/step-58.output with 100% similarity]
tests/examples/step-74.with_umfpack=true.output [moved from tests/examples/step-74.output with 100% similarity]
tests/examples/step-79.with_umfpack=true.output [moved from tests/examples/step-79.output with 100% similarity]

index 5e308b4c975accd3b7e0a5cf409bfbf300c2daa3..f55865387d41fa2bddc9bc787046dd0a6bb9f183 100644 (file)
@@ -34,6 +34,19 @@ if(NOT ${deal.II_FOUND})
     )
 endif()
 
+#
+# Are all dependencies fulfilled?
+#
+if(NOT DEAL_II_WITH_UMFPACK) # 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_UMFPACK = ON
+However, the deal.II library found at ${DEAL_II_PATH} was configured with these options:
+    DEAL_II_WITH_UMFPACK = ${DEAL_II_WITH_UMFPACK}
+This conflicts with the requirements."
+    )
+endif()
+
 deal_ii_initialize_cached_variables()
 project(${TARGET})
 deal_ii_invoke_autopilot()
index 719bce76982cdf95b4919b11f7c3463a9ef9bbf7..0edbc167eeef64c62911c977b98ecb74d439251d 100644 (file)
@@ -34,6 +34,19 @@ if(NOT ${deal.II_FOUND})
     )
 endif()
 
+#
+# Are all dependencies fulfilled?
+#
+if(NOT DEAL_II_WITH_UMFPACK) # 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_UMFPACK = ON
+However, the deal.II library found at ${DEAL_II_PATH} was configured with these options:
+    DEAL_II_WITH_UMFPACK = ${DEAL_II_WITH_UMFPACK}
+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.