Merge pull request #1734 from avalentino/fix-hdf5-zlib-check

Fix HDF5_ZLIB check
This commit is contained in:
Ward Fisher 2021-01-26 11:48:02 -07:00 committed by GitHub
commit 5afe43639a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -818,7 +818,9 @@ IF(USE_HDF5)
ENDIF(NOT HAVE_HDF5_H)
# Check to ensure that HDF5 was built with zlib.
set (CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} "${HAVE_HDF5_H}")
set (CMAKE_REQUIRED_INCLUDES ${HDF5_INCLUDE_DIR})
CHECK_C_SOURCE_COMPILES("#include <H5public.h>
#if !H5_HAVE_ZLIB_H
#error