diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/vtk/libproj.patch | |
Diffstat (limited to 'vcpkg/ports/vtk/libproj.patch')
| -rw-r--r-- | vcpkg/ports/vtk/libproj.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/vtk/libproj.patch b/vcpkg/ports/vtk/libproj.patch new file mode 100644 index 0000000..7b97297 --- /dev/null +++ b/vcpkg/ports/vtk/libproj.patch @@ -0,0 +1,46 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d477f8b..375a2a2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -389,7 +389,6 @@ endif () + # Handle the requirement of `sqlitebin` for `proj`. + set(vtk_sqlite_build_binary 0) + if ("VTK::libproj" IN_LIST vtk_modules) +- set(vtk_sqlite_build_binary 1) + endif () + + cmake_dependent_option(VTK_ENABLE_KITS "Enable kits compilation" OFF +diff --git a/ThirdParty/libproj/CMakeLists.txt b/ThirdParty/libproj/CMakeLists.txt +index f8888876..d57c4c18 100644 +--- a/ThirdParty/libproj/CMakeLists.txt ++++ b/ThirdParty/libproj/CMakeLists.txt +@@ -4,11 +4,13 @@ vtk_module_third_party( + VERSION + "8.1.0" + STANDARD_INCLUDE_DIRS + EXTERNAL +- PACKAGE LibPROJ +- TARGETS LibPROJ::LibPROJ +- USE_VARIABLES LibPROJ_MAJOR_VERSION ++ PACKAGE PROJ ++ CONFIG_MODE ++ TARGETS PROJ::proj ++ USE_VARIABLES PROJ_VERSION_MAJOR + STANDARD_INCLUDE_DIRS) ++set(LibPROJ_MAJOR_VERSION "${PROJ_VERSION_MAJOR}") + + if (NOT VTK_MODULE_USE_EXTERNAL_VTK_libproj) + set(LibPROJ_MAJOR_VERSION "8") +diff --git a/ThirdParty/libproj/vtk.module b/ThirdParty/libproj/vtk.module +index e49d988f..bb2d22e7 100644 +--- a/ThirdParty/libproj/vtk.module ++++ b/ThirdParty/libproj/vtk.module +@@ -6,8 +6,4 @@ SPDX_LICENSE_IDENTIFIER + BSD-3-Clause + SPDX_COPYRIGHT_TEXT + Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen +-DEPENDS +- VTK::nlohmannjson +-PRIVATE_DEPENDS +- VTK::sqlite + THIRD_PARTY |