Fix compile without built-in qsqlite
This commit is contained in:
@@ -282,14 +282,16 @@ list(REMOVE_ITEM QT_LIBRARIES "-lGLU -lGL")
|
||||
# QSqlLiteDriver:
|
||||
# We do this because we can't guarantee that the driver shipped with Qt exposes the raw sqlite3 functions required for FTS support.
|
||||
# This way we know that those symbols exist at compile-time and that our code links to the same sqlite library as the Qt driver.
|
||||
option(USE_SYSTEM_QSQLITE "Don't set this unless you can guarantee that the driver shipped with Qt exposes the raw sqlite3 functions required for FTS support" OFF)
|
||||
option(USE_SYSTEM_QSQLITE "Don't set this unless you can guarantee that the driver shipped with Qt exposes the raw sqlite3 functions required for FTS support" ON)
|
||||
if(USE_SYSTEM_QSQLITE)
|
||||
message(STATUS "Using system qsqlite driver")
|
||||
set(USE_SYSTEM_QSQLITE ON)
|
||||
else(USE_SYSTEM_QSQLITE)
|
||||
message(STATUS "Using builtin qsqlite driver")
|
||||
add_subdirectory(3rdparty/qsqlite)
|
||||
set(QSQLITE_LIBRARIES qsqlite)
|
||||
set(QSQLITE_INCLUDE_DIRS "3rdparty/qsqlite")
|
||||
set(USE_SYSTEM_QSQLITE OFF)
|
||||
endif(USE_SYSTEM_QSQLITE)
|
||||
|
||||
# When/if upstream accepts our patches then these options can be used to link to system installed qtsingleapplication instead.
|
||||
|
||||
Reference in New Issue
Block a user