From 2035f0ab90501745b4263a85592c5c3e2ec311c9 Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 24 Feb 2025 07:43:32 -0500 Subject: [PATCH] Give config.h a higher precedence. This fixes a bug on 4.9.2 where an installed non-netcdf config.h was included instead of netcdf's config.h. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 283ead8f3..06edeaff5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1429,7 +1429,7 @@ configure_file("${netCDF_SOURCE_DIR}/config.h.cmake.in" add_definitions(-DHAVE_CONFIG_H) -include_directories(${netCDF_BINARY_DIR}) +include_directories(BEFORE ${netCDF_BINARY_DIR}) # End autotools-style checks for config.h #####