From fa4b4d48d9c8d37f8c11f03825cacffbc760e245 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 15 Mar 2017 16:02:00 -0700 Subject: [PATCH] Fix vcpkg_get_windows_sdk.cmake to properly handle space in path --- scripts/cmake/vcpkg_get_windows_sdk.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cmake/vcpkg_get_windows_sdk.cmake b/scripts/cmake/vcpkg_get_windows_sdk.cmake index 7a8014eb25..f522ae5a35 100644 --- a/scripts/cmake/vcpkg_get_windows_sdk.cmake +++ b/scripts/cmake/vcpkg_get_windows_sdk.cmake @@ -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)