aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/netcdf-c/plugin-install-dir.diff
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/netcdf-c/plugin-install-dir.diff
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/netcdf-c/plugin-install-dir.diff')
-rw-r--r--vcpkg/ports/netcdf-c/plugin-install-dir.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/netcdf-c/plugin-install-dir.diff b/vcpkg/ports/netcdf-c/plugin-install-dir.diff
new file mode 100644
index 0000000..1e55b28
--- /dev/null
+++ b/vcpkg/ports/netcdf-c/plugin-install-dir.diff
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bbb647c..34927c0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -667,6 +667,9 @@ endif()
+ if (DEFINED NETCDF_WITH_PLUGIN_DIR) # Table row 3
+ set(DEFAULT_PLUGIN_INSTALL_DIR "${NETCDF_WITH_PLUGIN_DIR}")
+ set(DEFAULT_PLUGIN_SEARCH_PATH "${NETCDF_WITH_PLUGIN_DIR}${PLATFORMSEP}${PLATFORMDEFAULT}")
++elseif (DEFINED CMAKE_INSTALL_PREFIX) # vcpkg: install, don't change search path
++ set(DEFAULT_PLUGIN_INSTALL_DIR "plugins/netcdf-c")
++ set(DEFAULT_PLUGIN_SEARCH_PATH "${PLATFORMDEFAULT}")
+ elseif (DEFINED CMAKE_INSTALL_PREFIX) # Table row 2
+ set(DEFAULT_PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/hdf5/lib/plugin")
+ set(DEFAULT_PLUGIN_SEARCH_PATH "${DEFAULT_PLUGIN_INSTALL_DIR}${PLATFORMSEP}${PLATFORMDEFAULT}")