aboutsummaryrefslogtreecommitdiff
path: root/ports/libodb-sqlite
diff options
context:
space:
mode:
authorPhoebe <20694052+PhoebeHui@users.noreply.github.com>2020-08-06 01:36:25 +0800
committerGitHub <noreply@github.com>2020-08-05 10:36:25 -0700
commitf3221c0405b6f99c6eff113cb4ca8c81c3ad3a84 (patch)
treea3f72ea4c7d994cf097077be5daa3b8be07c3b59 /ports/libodb-sqlite
parent6a83b5365e8fc48c41564d319f915cbff603c99e (diff)
downloadvcpkg-f3221c0405b6f99c6eff113cb4ca8c81c3ad3a84.tar.gz
vcpkg-f3221c0405b6f99c6eff113cb4ca8c81c3ad3a84.zip
[sqlite3] Namespaced targets with unofficial:: (#12516)
* [sqlite3] Namespaced targets with unofficial:: * Fix failure ports * Update the targets name * Update related docs
Diffstat (limited to 'ports/libodb-sqlite')
-rw-r--r--ports/libodb-sqlite/CMakeLists.txt4
-rw-r--r--ports/libodb-sqlite/CONTROL3
2 files changed, 4 insertions, 3 deletions
diff --git a/ports/libodb-sqlite/CMakeLists.txt b/ports/libodb-sqlite/CMakeLists.txt
index 8a62ab9a8..e0689fa91 100644
--- a/ports/libodb-sqlite/CMakeLists.txt
+++ b/ports/libodb-sqlite/CMakeLists.txt
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.0)
project(libodb-sqlite VERSION 2.4.0 LANGUAGES CXX)
find_package(odb 2.4.0 REQUIRED COMPONENTS libodb)
-find_package(sqlite3 CONFIG)
+find_package(unofficial-sqlite3 CONFIG)
configure_file(config.unix.h.in odb/sqlite/details/config.h COPYONLY)
set(LIBODB_INSTALL_HEADERS ON CACHE BOOL "Install the header files (a debug install)")
@@ -17,7 +17,7 @@ target_include_directories(libodb-sqlite
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
)
-target_link_libraries(libodb-sqlite PRIVATE odb::libodb sqlite3)
+target_link_libraries(libodb-sqlite PRIVATE odb::libodb unofficial::sqlite3::sqlite3)
if(BUILD_SHARED_LIBS)
target_compile_definitions(libodb-sqlite PRIVATE
-DLIBODB_SQLITE_DYNAMIC_LIB
diff --git a/ports/libodb-sqlite/CONTROL b/ports/libodb-sqlite/CONTROL
index e7afd76e0..ae35fc372 100644
--- a/ports/libodb-sqlite/CONTROL
+++ b/ports/libodb-sqlite/CONTROL
@@ -1,5 +1,6 @@
Source: libodb-sqlite
-Version: 2.4.0-6
+Version: 2.4.0
+Port-Version: 7
Homepage: https://www.codesynthesis.com/products/odb/
Description: Sqlite support for the ODB ORM library
Build-Depends: libodb, sqlite3