diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-03-21 15:48:29 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-03-21 17:02:18 -0700 |
| commit | 85169faaeaf93d5e88348d2e241272a5063debff (patch) | |
| tree | b6dc7d95a45e72e9a465854e2ea7a2942335bd14 /scripts/cmake | |
| parent | b01e4cb5516c42842c428d44e388a223b9e0974c (diff) | |
| download | vcpkg-85169faaeaf93d5e88348d2e241272a5063debff.tar.gz vcpkg-85169faaeaf93d5e88348d2e241272a5063debff.zip | |
[vcpkg-toolchain] Automatically detect Windows SDK version.
Diffstat (limited to 'scripts/cmake')
| -rw-r--r-- | scripts/cmake/vcpkg_get_windows_sdk.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_get_windows_sdk.cmake b/scripts/cmake/vcpkg_get_windows_sdk.cmake index cefe8cfd8..ca58ab10a 100644 --- a/scripts/cmake/vcpkg_get_windows_sdk.cmake +++ b/scripts/cmake/vcpkg_get_windows_sdk.cmake @@ -1,10 +1,11 @@ +# Returns Windows SDK number via out variable "ret" function(vcpkg_get_windows_sdk ret) execute_process( COMMAND powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& {& '${VCPKG_ROOT_DIR}/scripts/getWindowsSDK.ps1'}" 2>&1 OUTPUT_VARIABLE WINDOWS_SDK RESULT_VARIABLE error_code) - if (${error_code}) + if (error_code) message(FATAL_ERROR "Could not find Windows SDK") endif() |
