mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 01:51:39 +08:00
6 lines
247 B
CMake
6 lines
247 B
CMake
# Returns Windows SDK number via out variable "ret"
|
|
function(vcpkg_get_windows_sdk ret)
|
|
set(WINDOWS_SDK $ENV{WindowsSDKVersion})
|
|
string(REPLACE "\\" "" WINDOWS_SDK "${WINDOWS_SDK}")
|
|
set(${ret} ${WINDOWS_SDK} PARENT_SCOPE)
|
|
endfunction() |