From cf33347c045bde0fd280f91a3557281b4f2fb339 Mon Sep 17 00:00:00 2001 From: Larry Knox Date: Fri, 20 Jan 2023 14:33:48 -0600 Subject: CMake: Find MPI in HDF5 CMake config (#2400) (#2413) Co-authored-by: kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com> --- 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 cfebee4..dde483e 100644 --- a/config/cmake/hdf5-config.cmake.in +++ b/config/cmake/hdf5-config.cmake.in @@ -61,6 +61,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 () #----------------------------------------------------------------------------- -- cgit v0.12