aboutsummaryrefslogtreecommitdiff
path: root/ports/proj4/use-sqlite3-config.patch
diff options
context:
space:
mode:
authorLong Huan <8551701+longhuan2018@users.noreply.github.com>2020-12-02 05:59:39 +0800
committerGitHub <noreply@github.com>2020-12-01 13:59:39 -0800
commit629acdf9d12fd619ba93483c77dfbd73acc9b72c (patch)
tree8a7011a096171338a6f33662236f18bc7a718502 /ports/proj4/use-sqlite3-config.patch
parent5d813f388088ab05cbc36cb304204749af6ada2f (diff)
downloadvcpkg-629acdf9d12fd619ba93483c77dfbd73acc9b72c.tar.gz
vcpkg-629acdf9d12fd619ba93483c77dfbd73acc9b72c.zip
[Proj4] Update to 7.2.0 (#14800)
* update proj4 to 7.2.0 * fix cmake find * add tiff,curl feature * fix depends * Update fix-proj4-targets-cmake.patch * fix * remove tiff and curl when static build * fix windows static build error * Update ports/proj4/portfile.cmake Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * change port version * use find_dependency instead of find_package * Update fix-proj4-targets-cmake.patch * Update fix-proj4-targets-cmake.patch Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Diffstat (limited to 'ports/proj4/use-sqlite3-config.patch')
-rw-r--r--ports/proj4/use-sqlite3-config.patch57
1 files changed, 0 insertions, 57 deletions
diff --git a/ports/proj4/use-sqlite3-config.patch b/ports/proj4/use-sqlite3-config.patch
deleted file mode 100644
index 050a88415..000000000
--- a/ports/proj4/use-sqlite3-config.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index c617912..bed0428 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -122,7 +122,23 @@ if(NOT EXE_SQLITE3)
- message(SEND_ERROR "sqlite3 binary not found!")
- endif()
-
--find_package(Sqlite3 REQUIRED)
-+#find_package(Sqlite3 REQUIRED)
-+find_package(unofficial-sqlite3 CONFIG REQUIRED)
-+if(unofficial-sqlite3_FOUND)
-+ set(SQLITE3_FOUND true)
-+ get_target_property(SQLITE3_INCLUDE_DIR unofficial::sqlite3::sqlite3 INTERFACE_INCLUDE_DIRECTORIES)
-+ set(SQLITE3_LIBRARY unofficial::sqlite3::sqlite3)
-+ # Extract version information from the header file
-+ if(SQLITE3_INCLUDE_DIR)
-+ file(STRINGS ${SQLITE3_INCLUDE_DIR}/sqlite3.h _ver_line
-+ REGEX "^#define SQLITE_VERSION *\"[0-9]+\\.[0-9]+\\.[0-9]+\""
-+ LIMIT_COUNT 1)
-+ string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+"
-+ SQLITE3_VERSION "${_ver_line}")
-+ unset(_ver_line)
-+ endif()
-+endif()
-+
- if(NOT SQLITE3_FOUND)
- message(SEND_ERROR "sqlite3 dependency not found!")
- endif()
-diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
-index 92197c8..ab65de7 100644
---- a/cmake/CMakeLists.txt
-+++ b/cmake/CMakeLists.txt
-@@ -25,6 +25,10 @@ else ()
- endif ()
-
- string(TOLOWER "${PROJECT_NAME}" PROJECT_NAME_LOWER)
-+set(FIND_DEPENDENCY_SQLITE3 "")
-+if(NOT BUILD_LIBPROJ_SHARED)
-+ set(FIND_DEPENDENCY_SQLITE3 "find_package(unofficial-sqlite3 CONFIG REQUIRED)")
-+endif()
- configure_file(project-config.cmake.in project-config.cmake @ONLY)
- configure_file(project-config-version.cmake.in
- project-config-version.cmake @ONLY)
-diff --git a/cmake/project-config.cmake.in b/cmake/project-config.cmake.in
-index 9a52b3b..295d95d 100644
---- a/cmake/project-config.cmake.in
-+++ b/cmake/project-config.cmake.in
-@@ -13,6 +13,8 @@ message (STATUS "Reading ${CMAKE_CURRENT_LIST_FILE}")
- message (STATUS
- "@PROJECT_NAME@ configuration, version ${@PROJECT_NAME@_VERSION}")
-
-+@FIND_DEPENDENCY_SQLITE3@
-+
- # Tell the user project where to find our headers and libraries
- get_filename_component (_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
- get_filename_component (_ROOT "${_DIR}/@PROJECT_ROOT_DIR@" ABSOLUTE)