File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -206,12 +206,6 @@ install(EXPORT ${PROJECT_NAME}Config DESTINATION lib/cmake/${PROJECT_NAME})
206
206
207
207
## Build provided copy of SQLite3 C library ##
208
208
209
- # TODO
210
- #find_package(sqlite3)
211
- #if(sqlite3_VERSION VERSION_LESS "3.19")
212
- # set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-DSQLITECPP_HAS_MEM_STRUCT")
213
- #endif()
214
-
215
209
option (SQLITECPP_USE_ASAN "Use Address Sanitizer." OFF )
216
210
if (SQLITECPP_USE_ASAN )
217
211
if ((CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 6 ) OR ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "Clang" ))
@@ -230,6 +224,12 @@ if (SQLITECPP_INTERNAL_SQLITE)
230
224
add_subdirectory (sqlite3 )
231
225
target_include_directories (sqlite3 PUBLIC "${PROJECT_SOURCE_DIR} /sqlite3" )
232
226
target_include_directories (SQLiteCpp PRIVATE "${PROJECT_SOURCE_DIR} /sqlite3" )
227
+ else (SQLITECPP_INTERNAL_SQLITE )
228
+ find_package (SQLite3 REQUIRED )
229
+ if (SQLITE3_FOUND )
230
+ include_directories (${SQLITE3_INCLUDE_DIRS} )
231
+ target_link_libraries (SQLiteCpp ${SQLITE3_LIBRARIES} )
232
+ endif (SQLITE3_FOUND )
233
233
endif (SQLITECPP_INTERNAL_SQLITE )
234
234
235
235
# Optional additional targets:
You can’t perform that action at this time.
0 commit comments