]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Change MPI error message to something meaningful
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 9 Mar 2013 19:59:52 +0000 (19:59 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 9 Mar 2013 19:59:52 +0000 (19:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@28843 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_1_mpi.cmake

index 4655d82319314ab62d7d41d9c61fce46f171a2e6..dd5bffa9156407c11a550d20a86016fa8e5e9cd5 100644 (file)
@@ -68,9 +68,11 @@ ENDMACRO()
 MACRO(FEATURE_MPI_ERROR_MESSAGE)
   MESSAGE(FATAL_ERROR "\n"
     "Could not find any suitable mpi library!\n"
-    "Please ensure that an mpi library is installed on your computer.\n"
-    "If the library is not at a default location, either provide some hints\n"
-    "for the autodetection, or set the relevant variables by hand in ccmake.\n"
+    "Please ensure that an mpi library is installed on your computer\n"
+    "and set CMAKE_CXX_COMPILER and CMAKE_C_COMPILER to the appropriate mpi\n"
+    "wrappers:\n"
+    "    $ CC=\".../mpicc\" CXX=\".../mpicxx\" cmake <...>\n"
+    "    $ cmake -DCMAKE_C_COMPILER=\".../mpicc\" -DCMAKE_CXX_COMPIER=\".../mpicxx\" <...>\n"
     )
 ENDMACRO()
 

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.