Fix vcpkg_get_windows_sdk.cmake to properly handle space in path

This commit is contained in:
Alexander Karatarakis 2017-03-15 16:02:00 -07:00
parent 3e01505399
commit fa4b4d48d9

View File

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