mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
Merge pull request #1734 from avalentino/fix-hdf5-zlib-check
Fix HDF5_ZLIB check
This commit is contained in:
commit
5afe43639a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user