summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2023-01-01 15:30:46 +0100
committerKai Köhne <kai.koehne@qt.io>2023-01-03 13:53:47 +0100
commit8bf602518d8440542329d867c1a710b66ae12c36 (patch)
treed6c1fa7575fe9eae89d7a1b3d5837bca7ecf539a /cmake
parent5de97970b85df747916831c97fb3a4f1fd912594 (diff)
Enforce strict standards behavior in MSVC headersclean check
The comment apparently doesn't apply anymore. Change-Id: Ie0572341c55d60b83ff428134ba803068fa20558 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtHeadersClean.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmake/QtHeadersClean.cmake b/cmake/QtHeadersClean.cmake
index 497c3f2909..b19990eac4 100644
--- a/cmake/QtHeadersClean.cmake
+++ b/cmake/QtHeadersClean.cmake
@@ -181,9 +181,7 @@ function(qt_internal_add_headersclean_target module_target module_headers)
)
set(input_header_path_type ABSOLUTE)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
- # -Za would enable strict standards behavior, but we can't add it because
- # <windows.h> and <GL.h> violate the standards.
- set(hcleanFLAGS -std:c++latest -Zc:__cplusplus -WX -W3)
+ set(hcleanFLAGS -std:c++latest -Zc:__cplusplus -Za -WX -W3)
# cl.exe needs a source path
get_filename_component(source_path "${QT_MKSPECS_DIR}/features/data/dummy.cpp" REALPATH)