From 8589d39d8eaad83ce9a856d81b42245d57bb1e18 Mon Sep 17 00:00:00 2001 From: Gavin Ridley Date: Thu, 11 Mar 2021 09:37:06 -0500 Subject: [PATCH] improve clarity of phdf5 error message --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e0ff23cb2..8c92751e2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()