]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-45 requires MPI and Trilinos 1837/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 5 Nov 2015 14:12:33 +0000 (09:12 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 5 Nov 2015 14:12:33 +0000 (09:12 -0500)
examples/step-45/CMakeLists.txt

index 4ad8df9fad043448997684039a6fec30346bcea0..8a525dda7ac6cb9ada7a28e5d0aeed8fb1d9d6f6 100644 (file)
@@ -34,6 +34,21 @@ IF(NOT ${deal.II_FOUND})
     )
 ENDIF()
 
+#
+# Are all dependencies fulfilled?
+#
+IF( NOT DEAL_II_WITH_MPI OR
+    NOT DEAL_II_WITH_P4EST OR
+    NOT DEAL_II_WITH_TRILINOS )
+  MESSAGE(FATAL_ERROR "
+Error! The deal.II library found at ${DEAL_II_PATH} was not configured with
+    DEAL_II_WITH_MPI = ON
+    DEAL_II_WITH_P4EST = ON
+    DEAL_II_WITH_TRILINOS = ON
+One or all of these are OFF in your installation but are required for this tutorial step."
+    )
+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.