Enable warnings-are-errors for Visual Studio 2022
Change-Id: Id0b143f668f69481f6037f94aedbfd2e87331497 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
parent
bcac7d9433
commit
6c10546a4b
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user