Merge pull request #2071 from mathstuf/hdf5-library-variable-hole

hdf5: try and fill in HDF5_C_LIBRARY from HDF5_hdf5_LIBRARY if possible
This commit is contained in:
Ward Fisher 2021-08-12 16:06:51 -06:00 committed by GitHub
commit b8a04fd8fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -711,6 +711,10 @@ IF(USE_HDF5)
ELSE(MSVC)
IF(HDF5_hdf5_LIBRARY AND NOT HDF5_C_LIBRARY)
SET(HDF5_C_LIBRARY ${HDF5_hdf5_LIBRARY})
ENDIF()
# Depending on the install, either HDF5_hdf_library or
# HDF5_C_LIBRARIES may be defined. We must check for either.
IF(HDF5_C_LIBRARIES AND NOT HDF5_hdf5_LIBRARY)