From b36dc820162b0e4d47263e9b67d0b953efe2cf8e Mon Sep 17 00:00:00 2001 From: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:05:03 +0100 Subject: [PATCH] [scripts] allow / in WindowsSDKVersion (#42139) --- scripts/cmake/vcpkg_get_windows_sdk.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cmake/vcpkg_get_windows_sdk.cmake b/scripts/cmake/vcpkg_get_windows_sdk.cmake index bb26b44b75..4c58d0770e 100644 --- a/scripts/cmake/vcpkg_get_windows_sdk.cmake +++ b/scripts/cmake/vcpkg_get_windows_sdk.cmake @@ -1,5 +1,5 @@ function(vcpkg_get_windows_sdk out_var) - if("$ENV{WindowsSDKVersion}" MATCHES [[^([0-9.]*)\\?$]]) + if("$ENV{WindowsSDKVersion}" MATCHES [[^([0-9.]*)(\\|/)?$]]) set("${out_var}" "${CMAKE_MATCH_1}" PARENT_SCOPE) else() message(FATAL_ERROR "Unexpected format for ENV{WindowsSDKVersion} ($ENV{WindowsSDKVersion})")