From f5429c4650a094851d8fa14864ace837b5bbecc0 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Tue, 9 Dec 2025 11:51:13 +0100 Subject: [PATCH] Fix unfound Microsoft runtimes while installing by removing the set on MSVC_VERSION that should be already set. --- cmake/install/install.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/install/install.cmake b/cmake/install/install.cmake index 4b02038a6..f10b6b9dd 100644 --- a/cmake/install/install.cmake +++ b/cmake/install/install.cmake @@ -120,12 +120,11 @@ elseif(WIN32) NAMES msys2_shell.cmd HINTS "C:/msys64/" ) - set(MSVC_VERSION ${MSVC_TOOLSET_VERSION}) set(CMAKE_INSTALL_UCRT_LIBRARIES TRUE) if (CMAKE_BUILD_TYPE STREQUAL "Debug") set(CMAKE_INSTALL_DEBUG_LIBRARIES TRUE) - endif() - include(InstallRequiredSystemLibraries) + endif() + include(InstallRequiredSystemLibraries) find_file(UCRTBASE_LIB "ucrtbase.dll" PATHS "C:/Windows/System32") install(FILES ${UCRTBASE_LIB} DESTINATION "${CMAKE_INSTALL_BINDIR}")