From 433126d893863be8d8bf8a9c5d07a2a9309a5e8f Mon Sep 17 00:00:00 2001 From: Ryan Krattiger Date: Mon, 9 Jan 2023 22:51:32 -0600 Subject: [PATCH] CMake: Find MPI in HDF5 CMake config --- config/cmake/hdf5-config.cmake.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/cmake/hdf5-config.cmake.in b/config/cmake/hdf5-config.cmake.in index 35cee4f6062..1a3fb7bbf2f 100644 --- a/config/cmake/hdf5-config.cmake.in +++ b/config/cmake/hdf5-config.cmake.in @@ -63,6 +63,8 @@ if (${HDF5_PACKAGE_NAME}_ENABLE_PARALLEL) set (${HDF5_PACKAGE_NAME}_MPI_Fortran_INCLUDE_PATH "@MPI_Fortran_INCLUDE_DIRS@") set (${HDF5_PACKAGE_NAME}_MPI_Fortran_LIBRARIES "@MPI_Fortran_LIBRARIES@") endif () + + find_package(MPI QUIET REQUIRED) endif () if (${HDF5_PACKAGE_NAME}_BUILD_JAVA)