aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sqlitecpp/fix_dependency.patch
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/sqlitecpp/fix_dependency.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/sqlitecpp/fix_dependency.patch')
-rw-r--r--vcpkg/ports/sqlitecpp/fix_dependency.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/sqlitecpp/fix_dependency.patch b/vcpkg/ports/sqlitecpp/fix_dependency.patch
new file mode 100644
index 0000000..79fe8b8
--- /dev/null
+++ b/vcpkg/ports/sqlitecpp/fix_dependency.patch
@@ -0,0 +1,28 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 50362fb..5d7c22f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -325,9 +325,9 @@ else (SQLITECPP_INTERNAL_SQLITE)
+ target_link_libraries(SQLiteCpp PRIVATE ${sqlcipher_LIBRARY})
+ endif()
+ else()
+- find_package (SQLite3 REQUIRED)
++ find_package (unofficial-sqlite3 CONFIG)
+ message(STATUS "Link to sqlite3 system library ${SQLite3_VERSION}")
+- target_link_libraries(SQLiteCpp PUBLIC SQLite::SQLite3)
++ target_link_libraries(SQLiteCpp PRIVATE unofficial::sqlite3::sqlite3)
+ if(SQLite3_VERSION VERSION_LESS "3.19")
+ set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-DSQLITECPP_HAS_MEM_STRUCT")
+ endif()
+diff --git a/cmake/SQLiteCppConfig.cmake.in b/cmake/SQLiteCppConfig.cmake.in
+index 7d0941c..d0feda9 100644
+--- a/cmake/SQLiteCppConfig.cmake.in
++++ b/cmake/SQLiteCppConfig.cmake.in
+@@ -1,6 +1,6 @@
+ include(CMakeFindDependencyMacro)
+ if(NOT @SQLITECPP_INTERNAL_SQLITE@)
+- find_dependency(SQLite3 REQUIRED)
++ find_dependency(unofficial-sqlite3 REQUIRED)
+ endif()
+ if(@UNIX@)
+ set(THREADS_PREFER_PTHREAD_FLAG @THREADS_PREFER_PTHREAD_FLAG@)