Skip to content

Commit

Permalink
CMake: (fix) HDF5 1.14.0 (#121)
Browse files Browse the repository at this point in the history
- In the past a fix has been implemented to be able to build the
  H5Z-ZFP filter in combination with the parallel version
  of HDF5 1.14.0. Recently, the find_package(HDF5) command has been
  replaced by the macro HDF5_SUPPORT() with as a result that the
  previously mentioned fix did not work any more. Now, the fix
  has been modified such that building of the filter in combination
  with the parallel version of HDF5 1.14.0 works again.
  • Loading branch information
jwsblokland committed May 24, 2023
1 parent e1072ec commit 4ae3042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if (NOT HDF5_FOUND)
endif ()

# Find MPI depending on if HDF5 needs MPI.
if (HDF5_IS_PARALLEL AND ("${HDF5_VERSION}" VERSION_EQUAL "1.14.0"))
if ((HDF5_IS_PARALLEL OR HDF5_ENABLE_PARALLEL) AND ("${HDF5_VERSION}" VERSION_EQUAL "1.14.0"))
find_package(MPI REQUIRED COMPONENTS C)
endif()

Expand Down

0 comments on commit 4ae3042

Please sign in to comment.