]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check that MPIEXEC_EXECUTABLE is available in the test suite. 10734/head
authorDavid Wells <drwells@email.unc.edu>
Tue, 21 Jul 2020 14:13:23 +0000 (10:13 -0400)
committerDavid Wells <drwells@email.unc.edu>
Tue, 21 Jul 2020 14:41:23 +0000 (10:41 -0400)
cmake/macros/macro_deal_ii_pickup_tests.cmake

index 2345d09577988d58ddbab48800bde80495eb75ae..d24d5c53427f0746549e5dd4c09520b984d62cf0 100644 (file)
@@ -82,6 +82,13 @@ MACRO(DEAL_II_PICKUP_TESTS)
   #
   # Necessary external interpreters and programs:
   #
+  IF(${DEAL_II_WITH_MPI})
+    IF( "${MPIEXEC_EXECUTABLE}" STREQUAL "")
+      MESSAGE(FATAL_ERROR "Could not find an MPI launcher program, which is required "
+"for running the testsuite. Please explicitly specify MPIEXEC_EXECUTABLE to CMake "
+"as a full path to the MPI launcher program.")
+    ENDIF()
+  ENDIF()
 
   IF(DEAL_II_WITH_CUDA)
     FIND_PACKAGE(CUDA)

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.