mirror of
https://github.com/microsoft/vcpkg
synced 2024-11-21 16:09:03 -07:00
[scripts] allow / in WindowsSDKVersion (#42139)
This commit is contained in:
parent
81a178ad4b
commit
b36dc82016
1 changed files with 1 additions and 1 deletions
|
@ -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})")
|
||||
|
|
Loading…
Reference in a new issue