From 3b4dab66ebd696c2314fea022d916acd5d2f22e6 Mon Sep 17 00:00:00 2001 From: Chase Knowlden Date: Mon, 15 Dec 2025 00:26:29 -0500 Subject: [PATCH] fix: build with Visual Studio 2026 (#7924) --- dist/msi/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/msi/CMakeLists.txt b/dist/msi/CMakeLists.txt index 7dfb6af86..9141b0e24 100644 --- a/dist/msi/CMakeLists.txt +++ b/dist/msi/CMakeLists.txt @@ -15,7 +15,9 @@ if(MSVC_TOOLSET_VERSION MATCHES "^([0-9]+)([0-9])$") set(MSVC_TOOLSET_VERSION_MINOR ${CMAKE_MATCH_2}) 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) elseif(MSVC_TOOLSET_VERSION EQUAL 142) set(MSVS_VERSION 16)