Skip to content

Commit

Permalink
Merge pull request #2757 from ZedThree/cmake-fix-hdf5-zlib-check
Browse files Browse the repository at this point in the history
CMake: Change header in check for HDF5 zlib/szip support
  • Loading branch information
WardF authored Oct 2, 2023
2 parents 80c7469 + b6cb581 commit b62da98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ IF(USE_HDF5)
# This needs to be near the beginning since we
# need to know whether to add "-lz" to the symbol
# tests below.
CHECK_C_SOURCE_COMPILES("#include <H5public.h>
CHECK_C_SOURCE_COMPILES("#include <H5pubconf.h>
#if !H5_HAVE_ZLIB_H
#error
#endif
Expand All @@ -876,7 +876,7 @@ IF(USE_HDF5)
ENDIF()

#Check to see if H5Z_SZIP exists in HDF5_Libraries. If so, we must use szip library.
CHECK_C_SOURCE_COMPILES("#include <H5public.h>
CHECK_C_SOURCE_COMPILES("#include <H5pubconf.h>
#if !H5_HAVE_FILTER_SZIP
#error
#endif
Expand Down

0 comments on commit b62da98

Please sign in to comment.