Override detection of OS for sqlite3

sqlite3 doesn't detect properly VxWorks. Add workaround that hardcodes
detected OS to "UNIX".

Change-Id: I255bb1af94caf7b15c0bd05a4d4d9df6a076fc22
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
bb10
Michał Łoś 2023-09-01 14:48:15 +02:00
parent 930535fe30
commit 141cd13ab4
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@ if(QT_FEATURE_system_sqlite)
qt_internal_force_macos_intel_arch(QSQLiteDriverPlugin)
endif()
qt_internal_extend_target(QSQLiteDriverPlugin CONDITION NOT QT_FEATURE_system_sqlite AND VXWORKS
DEFINES
SQLITE_OS_UNIX=1
)
qt_internal_extend_target(QSQLiteDriverPlugin CONDITION NOT QT_FEATURE_system_sqlite
SOURCES
../../../3rdparty/sqlite/sqlite3.c