Merge pull request #1533 from jtramm/hdf5_112_fix2

Fix for deprecated HDF5 interface in version 1.12
This commit is contained in:
Paul Romano 2020-03-26 06:59:29 -05:00 committed by GitHub
commit 523176c992
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,13 @@ if(HDF5_IS_PARALLEL)
message(STATUS "Using parallel HDF5")
endif()
# Version 1.12 of HDF5 deprecates the H5Oget_info_by_idx() interface.
# Thus, we give these flags to allow usage of the old interface in newer
# versions of HDF5.
if(NOT (${HDF5_VERSION} VERSION_LESS 1.12.0))
list(APPEND cxxflags -DH5Oget_info_by_idx_vers=1 -DH5O_info_t_vers=1)
endif()
#===============================================================================
# Set compile/link flags based on which compiler is being used
#===============================================================================