Do not error when MPI is missing

This commit is contained in:
Janus Troelsen
2017-07-17 11:39:20 +02:00
committed by Yorik van Havre
parent 04c52196c8
commit 166ea50480

View File

@@ -686,7 +686,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
link_libraries(${OPENMPI_LIBRARIES})
find_file(MpidotH mpi.h PATHS ${OPENMPI_INCLUDE_DIRS} NO_DEFAULT_PATH)
if(NOT MpidotH)
message( FATAL_ERROR "mpi.h was not found. Check for error above.")
message( WARNING "mpi.h was not found. Check for error above.")
endif()
endif()
find_package(MEDFile REQUIRED)