Bump max version of MSVC's warnings-are-errors
Change-Id: I2b8612f863d674d1420f8643d4200ee3a8076898 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
934ff5afb5
commit
6548156e75
@ -66,8 +66,8 @@ function(qt_internal_set_warnings_are_errors_flags target target_scope)
|
|||||||
endif()
|
endif()
|
||||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||||
# Only enable for versions of MSVC that are known to work
|
# Only enable for versions of MSVC that are known to work
|
||||||
# 1939 is Visual Studio 2022 version 17.0
|
# 1941 is Visual Studio 2022 version 17.11
|
||||||
if(MSVC_VERSION LESS_EQUAL 1939)
|
if(MSVC_VERSION LESS_EQUAL 1941)
|
||||||
list(APPEND flags /WX)
|
list(APPEND flags /WX)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user