Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -329,18 +329,21 @@ if(openPMD_HAVE_HDF5)
endif()
# we imply support for parallel I/O if MPI variant is ON
if(openPMD_HAVE_MPI AND openPMD_HAVE_HDF5
AND NOT HDF5_IS_PARALLEL # FindHDF5.cmake
AND NOT HDF5_ENABLE_PARALLEL # hdf5-config.cmake
AND NOT (HDF5_IS_PARALLEL # FindHDF5.cmake
OR HDF5_ENABLE_PARALLEL # hdf5-config.cmake < 2.0.0
OR HDF5_PROVIDES_PARALLEL) # hdf5-config.cmake >= 2.0.0
)
string(CONCAT openPMD_HDF5_STATUS
"Found MPI but only serial version of HDF5. Either set "
"openPMD_USE_MPI=OFF to disable MPI or set openPMD_USE_HDF5=OFF "
"to disable HDF5 or provide a parallel install of HDF5.\n")
endif()
# HDF5 includes mpi.h in the public header H5public.h if parallel
if(openPMD_HAVE_HDF5 AND
(HDF5_IS_PARALLEL OR HDF5_ENABLE_PARALLEL)
AND NOT openPMD_HAVE_MPI)
if(openPMD_HAVE_HDF5 AND NOT openPMD_HAVE_MPI
AND (HDF5_IS_PARALLEL # FindHDF5.cmake
OR HDF5_ENABLE_PARALLEL # hdf5-config.cmake < 2.0.0
OR HDF5_PROVIDES_PARALLEL) # hdf5-config.cmake >= 2.0.0
)
string(CONCAT openPMD_HDF5_STATUS
"Found only parallel version of HDF5 but no MPI. Either set "
"openPMD_USE_MPI=ON to force using MPI or set openPMD_USE_HDF5=OFF "
Expand Down
Loading