diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index aee33c5dde..fc98e6215d 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -199,7 +199,7 @@ if (MSVC) target_compile_options(PlatformCommonInternal INTERFACE -Zc:wchar_t) target_compile_options(PlatformCommonInternal INTERFACE - $<$>:-guard:cf> + $<$>:-guard:cf -Gw> ) target_link_options(PlatformCommonInternal INTERFACE