mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
b3bf291c9a
* [SQLiteCpp] Update to 3.2.0 * x-add-version * Update ports/sqlitecpp/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update ports/sqlitecpp/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Updating to vcpkg_cmake_* functions. * x-add-version * Update ports/sqlitecpp/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * x-add-version * Update ports/sqlitecpp/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update ports/sqlitecpp/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * corrected * x-add-version * Add comment about new setting to indicate that it doesn't conflict with VCPKG_CRT_LINKAGE, add quotes and formatting. Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
17 lines
733 B
Diff
17 lines
733 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 72b1a42..552ff50 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -284,9 +284,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()
|