fix: build with Visual Studio 2026 (#7924)

This commit is contained in:
Chase Knowlden
2025-12-15 00:26:29 -05:00
committed by GitHub
parent d7f022599c
commit 3b4dab66eb

View File

@@ -15,7 +15,9 @@ if(MSVC_TOOLSET_VERSION MATCHES "^([0-9]+)([0-9])$")
set(MSVC_TOOLSET_VERSION_MINOR ${CMAKE_MATCH_2}) set(MSVC_TOOLSET_VERSION_MINOR ${CMAKE_MATCH_2})
endif() endif()
if(MSVC_TOOLSET_VERSION EQUAL 143) if(MSVC_TOOLSET_VERSION EQUAL 145)
set(MSVS_VERSION 18)
elseif(MSVC_TOOLSET_VERSION EQUAL 143)
set(MSVS_VERSION 17) set(MSVS_VERSION 17)
elseif(MSVC_TOOLSET_VERSION EQUAL 142) elseif(MSVC_TOOLSET_VERSION EQUAL 142)
set(MSVS_VERSION 16) set(MSVS_VERSION 16)