[vcpkg-toolchain] Add INPUT_FILE NUL. Fixes #1431.

This commit is contained in:
Robert Schumacher 2017-07-11 14:09:56 -07:00
parent c9340bd6e0
commit 5498864711

View File

@ -2,6 +2,7 @@
function(vcpkg_get_windows_sdk ret) function(vcpkg_get_windows_sdk ret)
execute_process( execute_process(
COMMAND powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& {& '${VCPKG_ROOT_DIR}/scripts/getWindowsSDK.ps1'}" 2>&1 COMMAND powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& {& '${VCPKG_ROOT_DIR}/scripts/getWindowsSDK.ps1'}" 2>&1
INPUT_FILE NUL
OUTPUT_VARIABLE WINDOWS_SDK OUTPUT_VARIABLE WINDOWS_SDK
RESULT_VARIABLE error_code) RESULT_VARIABLE error_code)