mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 05:28:01 +08:00
[scripts] allow / in WindowsSDKVersion (#42139)
This commit is contained in:
parent
81a178ad4b
commit
b36dc82016
@ -1,5 +1,5 @@
|
|||||||
function(vcpkg_get_windows_sdk out_var)
|
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)
|
set("${out_var}" "${CMAKE_MATCH_1}" PARENT_SCOPE)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Unexpected format for ENV{WindowsSDKVersion} ($ENV{WindowsSDKVersion})")
|
message(FATAL_ERROR "Unexpected format for ENV{WindowsSDKVersion} ($ENV{WindowsSDKVersion})")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user