Skip to content

Commit

Permalink
[scripts] allow / in WindowsSDKVersion (#42139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A authored Nov 14, 2024
1 parent 81a178a commit b36dc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cmake/vcpkg_get_windows_sdk.cmake
Original file line number Diff line number Diff line change
@@ -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})")
Expand Down

0 comments on commit b36dc82

Please sign in to comment.