aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorMathias Hasselmann <mathias@taschenorakel.de>2024-01-10 20:41:55 +0100
committerMathias Hasselmann <mathias@taschenorakel.de>2024-01-11 11:32:55 +0000
commit5be811013709e66cf1d16d2ebc215b3b51241dd9 (patch)
tree7cf49e06cd103cfd605e6af59c088a17dd00673c /src/shared
parent1936103fe66e34d4676abd2049798e174474ba71 (diff)
CMake: Fix MinGW builds with BUILD_WITH_PCH=OFF
Set the minimum required Windows version not only for PCH builds, but also for builds without precompiled headers. While there also increase the minimum required Windows version: Qt 6 already requires Windows 10. Therefore its safe to require the same API level for Qt Creator. Fixes: QTCREATORBUG-30189 Change-Id: Icbbc63657e3c64be1151dda06004234d56e33990 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/qtcreator_pch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/qtcreator_pch.h b/src/shared/qtcreator_pch.h
index 8684cf5941..e9488230b9 100644
--- a/src/shared/qtcreator_pch.h
+++ b/src/shared/qtcreator_pch.h
@@ -18,11 +18,11 @@
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
-// lib/Utils needs defines for Windows 8
+// Minimum requirement for Qt 6, and therefore Creator is Windows 10
#undef WINVER
-#define WINVER 0x0602
+#define WINVER 0x0A00
#undef _WIN32_WINNT
-#define _WIN32_WINNT 0x0602
+#define _WIN32_WINNT 0x0A00
#define NOHELP
#include <qt_windows.h>