diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-02-29 05:54:31 +0300 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2024-02-29 09:20:11 +0100 |
commit | 94c71d50f6624102cbe4930ddd2df3024f3fa19b (patch) | |
tree | dd05bd2311a28fd1cd66d3cc6c7a7f05a73b2f97 | |
parent | cabcb339c63a347df8a811dc7c35ce24f2d1af0f (diff) | |
download | tqt3-94c71d50f6624102cbe4930ddd2df3024f3fa19b.tar.gz tqt3-94c71d50f6624102cbe4930ddd2df3024f3fa19b.zip |
Fix FTBFS with -qt-sql-sqlite3
Fix FTBFS when sqlite3 sql driver is being built into the library
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 3cba79c7f5a4c3fcef587cecb7d9c4ede1e47be4)
-rw-r--r-- | src/sql/qt_sql.pri | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sql/qt_sql.pri b/src/sql/qt_sql.pri index 15ec8912e..fea3c9d59 100644 --- a/src/sql/qt_sql.pri +++ b/src/sql/qt_sql.pri @@ -255,6 +255,11 @@ sql { HEADERS += $$SQL_CPP/drivers/sqlite3/qsql_sqlite3.h SOURCES += $$SQL_CPP/drivers/sqlite3/qsql_sqlite3.cpp DEFINES += QT_SQL_SQLITE3 + unix { + !contains( LIBS, .*sqlite3.* ) { + LIBS *= -lsqlite3 + } + } } } |