summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Golubev <[email protected]>2024-02-29 05:54:31 +0300
committerAlexander Golubev <[email protected]>2024-02-29 05:59:37 +0300
commit3cba79c7f5a4c3fcef587cecb7d9c4ede1e47be4 (patch)
tree91b93d2d2aec3f63ce967dbf10ae5b4b003c3154 /src
parent92fe7747045ffd36c22d8129a406dd001e043263 (diff)
downloadtqt3-3cba79c7f5a4c3fcef587cecb7d9c4ede1e47be4.tar.gz
tqt3-3cba79c7f5a4c3fcef587cecb7d9c4ede1e47be4.zip
Fix FTBFS with -qt-sql-sqlite3
Fix FTBFS when sqlite3 sql driver is being built into the library Signed-off-by: Alexander Golubev <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/sql/qt_sql.pri5
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
+ }
+ }
}
}