aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-15 16:02:00 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-15 16:25:06 -0700
commitfa4b4d48d9c8d37f8c11f03825cacffbc760e245 (patch)
tree233674eb0f92c9aa69aa8ba3cf16fcc417767a5c
parent3e015053991b84f6e32f8fe9dd49ee2ba0e63f12 (diff)
downloadvcpkg-fa4b4d48d9c8d37f8c11f03825cacffbc760e245.tar.gz
vcpkg-fa4b4d48d9c8d37f8c11f03825cacffbc760e245.zip
Fix vcpkg_get_windows_sdk.cmake to properly handle space in path
-rw-r--r--scripts/cmake/vcpkg_get_windows_sdk.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_get_windows_sdk.cmake b/scripts/cmake/vcpkg_get_windows_sdk.cmake
index 7a8014eb2..f522ae5a3 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)