2020-04-24 12:17:26 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index 9363c0d..0f47f0f 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
|
|
|
@@ -227,9 +227,9 @@ if (SQLITECPP_INTERNAL_SQLITE)
|
|
|
|
add_subdirectory(sqlite3)
|
|
|
|
target_link_libraries(SQLiteCpp PUBLIC sqlite3)
|
|
|
|
else (SQLITECPP_INTERNAL_SQLITE)
|
|
|
|
- find_package (SQLite3 REQUIRED)
|
2020-08-06 01:36:25 +08:00
|
|
|
+ find_package(unofficial-sqlite3 CONFIG)
|
2020-04-24 12:17:26 +08:00
|
|
|
message(STATUS "Link to sqlite3 system library")
|
|
|
|
- target_link_libraries(SQLiteCpp PUBLIC SQLite::SQLite3)
|
2020-08-06 01:36:25 +08:00
|
|
|
+ target_link_libraries(SQLiteCpp PRIVATE unofficial::sqlite3::sqlite3)
|
2020-04-24 12:17:26 +08:00
|
|
|
if(SQLite3_VERSION VERSION_LESS "3.19")
|
|
|
|
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-DSQLITECPP_HAS_MEM_STRUCT")
|
|
|
|
endif()
|