summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2022-10-06 23:41:07 (GMT)
committerGitHub <noreply@github.com>2022-10-06 23:41:07 (GMT)
commit1a81091b35bd4452338cc908c2c1fdb97dc1773d (patch)
treed0d3314217765be0a4c54a44c26fd670f38578c7 /CMakeLists.txt
parent04d11bfb2bf430226af75c302f69e2d284ba395b (diff)
downloadhdf5-1a81091b35bd4452338cc908c2c1fdb97dc1773d.zip
hdf5-1a81091b35bd4452338cc908c2c1fdb97dc1773d.tar.gz
hdf5-1a81091b35bd4452338cc908c2c1fdb97dc1773d.tar.bz2
fixed fortran parallel testing with cmake (#2148)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ef148e..73bf6bf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1083,6 +1083,7 @@ if (EXISTS "${HDF5_SOURCE_DIR}/fortran" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/for
# Parallel IO usage requires MPI to be Linked and Included
if (H5_HAVE_PARALLEL)
+ find_package(MPI REQUIRED COMPONENTS Fortran)
set (LINK_Fortran_LIBS ${LINK_Fortran_LIBS} ${MPI_Fortran_LIBRARIES})
if (MPI_Fortran_LINK_FLAGS)
set (CMAKE_Fortran_EXE_LINKER_FLAGS "${MPI_Fortran_LINK_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}")