From 3d24a4e0f73989560ab2ae9db5a5a61a01d85efa Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 18 Feb 2024 13:03:00 +0800 Subject: [PATCH] Specify standards conformance mode to MSVC https://learn.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-170 PR #20427. --- cmake/Modules/CommonConfig.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Modules/CommonConfig.cmake b/cmake/Modules/CommonConfig.cmake index 1e3a1d006..b57dc4bcf 100644 --- a/cmake/Modules/CommonConfig.cmake +++ b/cmake/Modules/CommonConfig.cmake @@ -83,6 +83,7 @@ endif() if (MSVC) target_compile_options(qbt_common_cfg INTERFACE /guard:cf + /permissive- /utf-8 # https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ /Zc:__cplusplus