File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -240,13 +240,6 @@ if (SQLITECPP_INTERNAL_SQLITE)
240
240
add_subdirectory (sqlite3)
241
241
target_link_libraries (SQLiteCpp PUBLIC sqlite3)
242
242
else (SQLITECPP_INTERNAL_SQLITE)
243
- find_package (SQLite3 REQUIRED)
244
- message (STATUS "Link to sqlite3 system library" )
245
- target_link_libraries (SQLiteCpp PUBLIC SQLite::SQLite3)
246
- if (SQLite3_VERSION VERSION_LESS "3.19" )
247
- set_target_properties (SQLiteCpp PROPERTIES COMPILE_FLAGS "-DSQLITECPP_HAS_MEM_STRUCT" )
248
- endif ()
249
-
250
243
# When using the SQLite codec, we need to link against the sqlcipher lib & include <sqlcipher/sqlite3.h>
251
244
# So this gets the lib & header, and links/includes everything
252
245
if (SQLITE_HAS_CODEC)
@@ -284,6 +277,13 @@ else (SQLITECPP_INTERNAL_SQLITE)
284
277
target_include_directories (SQLiteCpp PRIVATE "${sqlcipher_INCLUDE_DIR} /sqlcipher" )
285
278
target_link_libraries (SQLiteCpp PRIVATE ${sqlcipher_LIBRARY} )
286
279
endif ()
280
+ else ()
281
+ find_package (SQLite3 REQUIRED)
282
+ message (STATUS "Link to sqlite3 system library" )
283
+ target_link_libraries (SQLiteCpp PUBLIC SQLite::SQLite3)
284
+ if (SQLite3_VERSION VERSION_LESS "3.19" )
285
+ set_target_properties (SQLiteCpp PROPERTIES COMPILE_FLAGS "-DSQLITECPP_HAS_MEM_STRUCT" )
286
+ endif ()
287
287
endif ()
288
288
endif (SQLITECPP_INTERNAL_SQLITE)
289
289
You can’t perform that action at this time.
0 commit comments