mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 03:09:01 +08:00
8 lines
302 B
CMake
8 lines
302 B
CMake
function(vcpkg_get_windows_sdk out_var)
|
|
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})")
|
|
endif()
|
|
endfunction()
|