diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index 7a0d8cd1b78..aee33c5dde0 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -49,8 +49,8 @@ function(qt_internal_set_warnings_are_errors_flags target) endif() elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # Only enable for versions of MSVC that are known to work - # 1929 is Visual Studio 2019 version 16.0 - if(MSVC_VERSION LESS_EQUAL 1929) + # 1939 is Visual Studio 2022 version 17.0 + if(MSVC_VERSION LESS_EQUAL 1939) list(APPEND flags /WX) endif() endif()