From 8bf602518d8440542329d867c1a710b66ae12c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Sun, 1 Jan 2023 15:30:46 +0100 Subject: [PATCH] Enforce strict standards behavior in MSVC headersclean check The comment apparently doesn't apply anymore. Change-Id: Ie0572341c55d60b83ff428134ba803068fa20558 Reviewed-by: Alexey Edelev --- cmake/QtHeadersClean.cmake | 4 +--- 1 file changed, 1 insertion(+), 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 - # and 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)