vcpkg/ports/vtk/libproj.patch

46 lines
1.4 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7c97ed2a..8df64eb1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -435,7 +435,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 cea568e1..05f85fbd 100644
--- a/ThirdParty/libproj/CMakeLists.txt
+++ b/ThirdParty/libproj/CMakeLists.txt
@@ -12,10 +12,12 @@ vtk_module_third_party(
"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