spack/var/spack/repos/builtin/packages/netcdf-c/4.8.1-win-hdf5-with-zlib.patch
John W. Parent 2e9d0e146e
netcdf-c[xx]: CMake/Windows build (#34935)
netcdf-cxx and netcdf-c now build with CMake rather than Autotools.
netcdf-c can still optionally build with Autotools (but defaults to
CMake). With some additional patches to the CMake files, netcdf-c
can use CMake to build on Windows.
2023-03-21 10:15:50 -07:00

14 lines
420 B
Diff

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