FindMPI: Failure is not an error if not REQUIRED
This commit is contained in:
parent
d84cbd0f77
commit
8460059a72
@ -274,9 +274,9 @@ elseif (MPI_COMPILE_CMDLINE)
|
|||||||
find_library(MPI_LIB ${LIB} HINTS ${MPI_LINK_PATH})
|
find_library(MPI_LIB ${LIB} HINTS ${MPI_LINK_PATH})
|
||||||
if (MPI_LIB)
|
if (MPI_LIB)
|
||||||
list(APPEND MPI_LIBRARIES ${MPI_LIB})
|
list(APPEND MPI_LIBRARIES ${MPI_LIB})
|
||||||
else (MPI_LIB)
|
elseif (NOT MPI_FIND_QUIETLY)
|
||||||
message(SEND_ERROR "Unable to find MPI library ${LIB}")
|
message(WARNING "Unable to find MPI library ${LIB}")
|
||||||
endif (MPI_LIB)
|
endif ()
|
||||||
endforeach(LIB)
|
endforeach(LIB)
|
||||||
set(MPI_LIB "MPI_LIB-NOTFOUND" CACHE INTERNAL "Scratch variable for MPI detection" FORCE)
|
set(MPI_LIB "MPI_LIB-NOTFOUND" CACHE INTERNAL "Scratch variable for MPI detection" FORCE)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user