From 07202400517148178343139d9f9daf3ae1ef8d31 Mon Sep 17 00:00:00 2001 From: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Date: Mon, 24 Aug 2020 10:57:38 -0700 Subject: [sqlitecpp] Fix dependency port (#13108) --- ports/sqlitecpp/CONTROL | 2 +- ports/sqlitecpp/fix_dependency.patch | 11 +++++++++++ ports/sqlitecpp/portfile.cmake | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 ports/sqlitecpp/fix_dependency.patch (limited to 'ports/sqlitecpp') diff --git a/ports/sqlitecpp/CONTROL b/ports/sqlitecpp/CONTROL index 372acc14b..f617bf93e 100644 --- a/ports/sqlitecpp/CONTROL +++ b/ports/sqlitecpp/CONTROL @@ -1,6 +1,6 @@ Source: sqlitecpp Version: 3.0.0 -Port-Version: 1 +Port-Version: 2 Build-Depends: sqlite3 Homepage: https://github.com/SRombauts/SQLiteCpp Description: SQLiteC++ (SQLiteCpp) is a smart and easy to use C++ SQLite3 wrapper. diff --git a/ports/sqlitecpp/fix_dependency.patch b/ports/sqlitecpp/fix_dependency.patch new file mode 100644 index 000000000..435061c02 --- /dev/null +++ b/ports/sqlitecpp/fix_dependency.patch @@ -0,0 +1,11 @@ +diff --git a/cmake/SQLiteCppConfig.cmake.in b/cmake/SQLiteCppConfig.cmake.in +index 82c32db..a485ad8 100644 +--- a/cmake/SQLiteCppConfig.cmake.in ++++ b/cmake/SQLiteCppConfig.cmake.in +@@ -1,5 +1,5 @@ + include(CMakeFindDependencyMacro) +-find_dependency(SQLite3) ++find_dependency(unofficial-sqlite3) + + @PACKAGE_INIT@ + diff --git a/ports/sqlitecpp/portfile.cmake b/ports/sqlitecpp/portfile.cmake index 9f2febab0..27d2e3204 100644 --- a/ports/sqlitecpp/portfile.cmake +++ b/ports/sqlitecpp/portfile.cmake @@ -7,6 +7,7 @@ vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH SHA512 d48b5915a2674f7f6da2737fa365e2202373e95cd20e819281b765a597e2fa8b8ae33f6553d65b6a8a93741e31633de3c75caf84fffa4313154c43ce634b1323 PATCHES 0001-Find-external-sqlite3.patch + fix_dependency.patch ) vcpkg_configure_cmake( -- cgit v1.2.3