diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2022-10-06 23:41:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 23:41:07 (GMT) |
commit | 1a81091b35bd4452338cc908c2c1fdb97dc1773d (patch) | |
tree | d0d3314217765be0a4c54a44c26fd670f38578c7 | |
parent | 04d11bfb2bf430226af75c302f69e2d284ba395b (diff) | |
download | hdf5-1a81091b35bd4452338cc908c2c1fdb97dc1773d.zip hdf5-1a81091b35bd4452338cc908c2c1fdb97dc1773d.tar.gz hdf5-1a81091b35bd4452338cc908c2c1fdb97dc1773d.tar.bz2 |
fixed fortran parallel testing with cmake (#2148)
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | fortran/testpar/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 1 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}") diff --git a/fortran/testpar/CMakeLists.txt b/fortran/testpar/CMakeLists.txt index 12489528..d41343c 100644 --- a/fortran/testpar/CMakeLists.txt +++ b/fortran/testpar/CMakeLists.txt @@ -4,7 +4,7 @@ project (HDF5_FORTRAN_TESTPAR C Fortran) #----------------------------------------------------------------------------- # Setup include Directories #----------------------------------------------------------------------------- -set (TESTPAR_INCLUDES ${MPI_Fortran_INCLUDE_DIRS} ${HDF5_F90_BINARY_DIR} ${HDF5_F90_SRC_DIR}/src)) +set (TESTPAR_INCLUDES ${MPI_Fortran_INCLUDE_DIRS} ${HDF5_F90_BINARY_DIR} ${HDF5_F90_SRC_DIR}/src) if (NOT BUILD_SHARED_LIBS) set (TESTPAR_INCLUDES ${TESTPAR_INCLUDES} ${CMAKE_Fortran_MODULE_DIRECTORY}/static) else () |