vcpkg/scripts/cmake/vcpkg_get_windows_sdk.cmake

6 lines
247 B
CMake
Raw Normal View History

# Returns Windows SDK number via out variable "ret"
2017-02-21 18:09:32 -08:00
function(vcpkg_get_windows_sdk ret)
set(WINDOWS_SDK $ENV{WindowsSDKVersion})
string(REPLACE "\\" "" WINDOWS_SDK "${WINDOWS_SDK}")
2017-02-21 18:09:32 -08:00
set(${ret} ${WINDOWS_SDK} PARENT_SCOPE)
endfunction()