mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Merge pull request #1533 from jtramm/hdf5_112_fix2
Fix for deprecated HDF5 interface in version 1.12
This commit is contained in:
commit
523176c992
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
#===============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue