summaryrefslogtreecommitdiffstats
path: root/util/cmake
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-03-26 14:01:53 +0100
committerTobias Hunger <tobias.hunger@qt.io>2019-04-02 13:17:26 +0000
commit5c05c46e929e367ee024ce115d1f68945c8b344a (patch)
tree3dcaa4d025c00dc1f7eb7960d8b8a7c581bf7663 /util/cmake
parentc4bdddf9176791992268f736b2798889c608026c (diff)
CMake: Set define for default QPA platform
This is used to set the default QPA platform and without it all Gui applications trigger an assert in QString:-/ This is way simpler than going through configure.json. Change-Id: I2c053e95c0f7e99e97a0b2918d8e4ac13d3494fd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake')
-rwxr-xr-xutil/cmake/configurejson2cmake.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 4cbcc981ce..1edb4b44a1 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -1008,9 +1008,6 @@ def processJson(dir, ctx, data):
cm_fh.write('qt_extra_definition("QT_VERSION_MINOR" ${PROJECT_VERSION_MINOR} PUBLIC)\n')
cm_fh.write('qt_extra_definition("QT_VERSION_PATCH" ${PROJECT_VERSION_PATCH} PUBLIC)\n')
- if ctx.get('module') == 'gui':
- cm_fh.write('\nqt_extra_definition("QT_QPA_DEFAULT_PLATFORM" "${QT_QPA_DEFAULT_PLATFORM}" PUBLIC)\n')
-
# do this late:
processSubconfigs(dir, ctx, data)