mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge branch 'backport-vs2026' into vs2026
This commit is contained in:
@@ -61,7 +61,10 @@ if(NOT MSVC_VERSION)
|
||||
message(FATAL_ERROR "MSVC compiler version not detected properly: ${_compiler_version}")
|
||||
endif()
|
||||
|
||||
if(MSVC_VERSION GREATER_EQUAL 1930)
|
||||
if(MSVC_VERSION GREATER_EQUAL 1950)
|
||||
# VS 2026 or greater
|
||||
set(MSVC_TOOLSET_VERSION 145)
|
||||
elseif(MSVC_VERSION GREATER_EQUAL 1930)
|
||||
# VS 2022 or greater
|
||||
set(MSVC_TOOLSET_VERSION 143)
|
||||
elseif(MSVC_VERSION GREATER_EQUAL 1920)
|
||||
|
||||
Reference in New Issue
Block a user