spack/var/spack/repos/builtin/packages/netcdf-c/4.8.1-win-hdf5-with-zlib.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
420 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ba66a6d4..217aa712 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -856,7 +856,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