From f5de333192ada282189713c43fff4a89a000273e Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 19 Oct 2022 12:22:59 +0200 Subject: [PATCH] MSVC: Disable conformance check that breaks with default WinSDK The default Windows SDK installed for VC++ 2022 is 10.0.19041, and still has the issue described here, breaking builds if -Zcpreprocessor is set: https://developercommunity.visualstudio.com/t/stdc17-generates-warning-compiling-windowsh/1249671 The issue might be fixed in SDK version 2104 (10.0.20348.0), but until that is the default SDK when installing the compiler, turn that conformance check off again. Partially reverts commit 8cb832090a8a0e7226904561f97c6de954d752ed Change-Id: Ib22f8d196b978274ce31be727826b902e79aaa99 Reviewed-by: Oliver Wolff --- cmake/QtInternalTargets.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index 363d510fd1..21bd645639 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -249,7 +249,7 @@ if (MSVC) target_compile_options(PlatformCommonInternal INTERFACE -Zc:externConstexpr #-Zc:lambda # Buggy. TODO: Enable again when stable enough. - -Zc:preprocessor + #-Zc:preprocessor # breaks build due to bug in default Windows SDK 10.0.19041 ) endif()