mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
b4ba8298f5
* update to 3.3.0 * merge patchs * remove ONLY_STATIC_LIBRARY * install .dll
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index df5693d..e5723d0 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -295,9 +295,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")
|
|
- 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 2b48df4..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@)
|