[oatpp-sqlite] fix usage of oatpp-sqlite (#35353)

* [oatpp-sqlite] fix usage of oatpp-sqlite

* update version

* update patch

* update version

* update patch

* update version

---------

Co-authored-by: vzhli17 <v-zhli17@microsoft.com>
This commit is contained in:
JonLiu1993
2023-11-27 22:52:24 -08:00
committed by GitHub
parent ba87a82f3d
commit 65a0e9b3ea
5 changed files with 24 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
diff --git a/cmake/module-config.cmake.in b/cmake/module-config.cmake.in
index 5cc12b0..5d94df8 100644
--- a/cmake/module-config.cmake.in
+++ b/cmake/module-config.cmake.in
@@ -1,5 +1,9 @@
@PACKAGE_INIT@
+include(CMakeFindDependencyMacro)
+find_dependency(oatpp CONFIG)
+find_dependency(unofficial-sqlite3 CONFIG)
+
if(NOT TARGET oatpp::@OATPP_MODULE_NAME@)
include("${CMAKE_CURRENT_LIST_DIR}/@OATPP_MODULE_NAME@Targets.cmake")
endif()

View File

@@ -8,6 +8,8 @@ vcpkg_from_github(
REF ${OATPP_VERSION}
SHA512 8a208145ee10ed858767b4b56c220b6befd83e6858759128103ce679b889e6218a95ed6627af5098e4d26367be8add82de26e1f1f8ef581b1913b8386f9d56de
HEAD_REF master
PATCHES
fix-usage.patch
)
vcpkg_cmake_configure(
@@ -21,4 +23,4 @@ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-sqlite CONFIG_PATH lib/cmake/oatpp-s
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@@ -1,7 +1,7 @@
{
"name": "oatpp-sqlite",
"version": "1.3.0",
"port-version": 1,
"port-version": 2,
"description": "Oat++ SQLite adapter for Oat++ ORM.",
"homepage": "https://github.com/oatpp/oatpp-sqlite",
"license": "Apache-2.0",

View File

@@ -6082,7 +6082,7 @@
},
"oatpp-sqlite": {
"baseline": "1.3.0",
"port-version": 1
"port-version": 2
},
"oatpp-ssdp": {
"baseline": "1.3.0",

View File

@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9bde9ba480ed1c17d74a09b924c849595f795b9c",
"version": "1.3.0",
"port-version": 2
},
{
"git-tree": "b28e241610e463b41e9c3e3f16f5805b19fb5fa5",
"version": "1.3.0",