From 6dcb028e84470f3f3d2048469e57cccaab42c71d Mon Sep 17 00:00:00 2001 From: Larry Knox Date: Thu, 19 Jan 2023 15:36:57 -0600 Subject: CMake: Find MPI in HDF5 CMake config (#2400) (#2410) 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 35cee4f..1a3fb7b 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) -- cgit v0.12