pineapple/externals/vcpkg/scripts/cmake/vcpkg_get_windows_sdk.cmake

8 lines
298 B
CMake
Raw Normal View History

2022-07-23 03:01:36 +02:00
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()