
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.
14 lines
420 B
Diff
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
|