summaryrefslogtreecommitdiffstats
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-06-28 15:35:18 (GMT)
committerBrad King <brad.king@kitware.com>2010-06-28 15:35:18 (GMT)
commit8460059a72312f142c43439a1eab5610c6d85dbe (patch)
tree42bd6c384b90a3a2fb91b4c05c296a57e9271d71 /Modules/FindMPI.cmake
parentd84cbd0f77e4a8de14e791fffb0c63dc2bd88302 (diff)
downloadCMake-8460059a72312f142c43439a1eab5610c6d85dbe.zip
CMake-8460059a72312f142c43439a1eab5610c6d85dbe.tar.gz
CMake-8460059a72312f142c43439a1eab5610c6d85dbe.tar.bz2
FindMPI: Failure is not an error if not REQUIRED
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r--Modules/FindMPI.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index 9e2a3ad..6139d4d 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -274,9 +274,9 @@ elseif (MPI_COMPILE_CMDLINE)
find_library(MPI_LIB ${LIB} HINTS ${MPI_LINK_PATH})
if (MPI_LIB)
list(APPEND MPI_LIBRARIES ${MPI_LIB})
- else (MPI_LIB)
- message(SEND_ERROR "Unable to find MPI library ${LIB}")
- endif (MPI_LIB)
+ elseif (NOT MPI_FIND_QUIETLY)
+ message(WARNING "Unable to find MPI library ${LIB}")
+ endif ()
endforeach(LIB)
set(MPI_LIB "MPI_LIB-NOTFOUND" CACHE INTERNAL "Scratch variable for MPI detection" FORCE)