aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2019-10-23 09:26:31 +0200
committerCristian Adam <cristian.adam@qt.io>2019-10-31 11:45:20 +0000
commit6c25049019a4c83713621e91f6f175b03f32c369 (patch)
tree9eeb9d3eb2cd8910884c0fd28c6629e3f374eafe /cmake
parent479def8190b51025f7788da1dd8e6ec60df2e975 (diff)
Windows: Remove explicit usage of _WIN32_WINNT and WINVER macros
The are set in a central place, in the precompile header file. Or as DEFAULT_DEFINES when the precompile header file is not used. Change-Id: Ie020f916b64eabcd5a8153f4be5474986f5afed5 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtCreatorAPI.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake
index 300b7cd50a..35ba699ee0 100644
--- a/cmake/QtCreatorAPI.cmake
+++ b/cmake/QtCreatorAPI.cmake
@@ -15,6 +15,13 @@ list(APPEND DEFAULT_DEFINES
if (WIN32)
list(APPEND DEFAULT_DEFINES UNICODE _UNICODE _CRT_SECURE_NO_WARNINGS)
+
+ if (NOT BUILD_WITH_PCH)
+ # Windows 8 0x0602
+ list(APPEND DEFAULT_DEFINES
+ WINVER=0x0602 _WIN32_WINNT=0x0602
+ WIN32_LEAN_AND_MEAN)
+ endif()
endif()
#