improve clarity of phdf5 error message

This commit is contained in:
Gavin Ridley 2021-03-11 09:37:06 -05:00 committed by GitHub
parent 00f5655111
commit 8589d39d8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,9 @@ endif()
find_package(HDF5 REQUIRED COMPONENTS C HL)
if(HDF5_IS_PARALLEL)
if(NOT MPI_ENABLED)
message(FATAL_ERROR "Parallel HDF5 must be used with MPI.")
message(FATAL_ERROR "Parallel HDF5 was detected, but the detected compiler,\
${CMAKE_CXX_COMPILER}, does not support MPI. An MPI-capable compiler must \
be used with parallel HDF5.")
endif()
message(STATUS "Using parallel HDF5")
endif()