Don't try to link to SQLite plugin when building samegame statically.
authorMitch Curtis <mitch.curtis@theqtcompany.com>
Thu, 20 Aug 2015 06:48:04 +0000 (08:48 +0200)
committerMitch Curtis <mitch.curtis@theqtcompany.com>
Fri, 21 Aug 2015 08:13:56 +0000 (08:13 +0000)
Disable the linking to a SQL driver that isn't a plugin

Task-number: QTBUG-42926
Change-Id: I6d51fce7bb924d8b778fe36fa9f908c6fda3da13
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
examples/quick/demos/samegame/samegame.pro

index 51e6f00321974dd8c27c55329f599392b444fd85..e041dd61dd803c86671ff3604b7503c184c306e1 100644 (file)
@@ -7,4 +7,4 @@ RESOURCES += samegame.qrc
 target.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/samegame
 INSTALLS += target
 
-QTPLUGIN += qsqlite
+!contains(sql-drivers, sqlite): QTPLUGIN += qsqlite