2020-10-31 04:29:32 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-11-17 05:20:56 +08:00
|
|
|
index 72b1a42..552ff50 100644
|
2020-10-31 04:29:32 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-11-17 05:20:56 +08:00
|
|
|
@@ -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()
|