From eb9b85c49db0102db6b584a84fa83e48ae7199c9 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Sat, 8 Apr 2017 18:53:39 -0700 Subject: [PATCH] [vcpkg] Switch several usages of -ExecutionPolicy Unrestricted to Bypass to avoid failures due to Mark Of The Web --- scripts/buildsystems/msbuild/vcpkg.targets | 4 ++-- scripts/cmake/vcpkg_copy_tool_dependencies.cmake | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/buildsystems/msbuild/vcpkg.targets b/scripts/buildsystems/msbuild/vcpkg.targets index e365768462..65eacd5c9a 100644 --- a/scripts/buildsystems/msbuild/vcpkg.targets +++ b/scripts/buildsystems/msbuild/vcpkg.targets @@ -64,13 +64,13 @@ File="$(TLogLocation)$(ProjectName).write.1u.tlog" Lines="^$(OutputPath)$(TargetName).$(OutputType);" Encoding="Unicode"/> diff --git a/scripts/cmake/vcpkg_copy_tool_dependencies.cmake b/scripts/cmake/vcpkg_copy_tool_dependencies.cmake index 432e3c12a3..f8af192308 100644 --- a/scripts/cmake/vcpkg_copy_tool_dependencies.cmake +++ b/scripts/cmake/vcpkg_copy_tool_dependencies.cmake @@ -4,7 +4,7 @@ function(vcpkg_copy_tool_dependencies TOOL_DIR) macro(search_for_dependencies PATH_TO_SEARCH) file(GLOB TOOLS ${TOOL_DIR}/*.exe ${TOOL_DIR}/*.dll) foreach(TOOL ${TOOLS}) - execute_process(COMMAND powershell -noprofile -executionpolicy UnRestricted -nologo + execute_process(COMMAND powershell -noprofile -executionpolicy Bypass -nologo -file ${VCPKG_ROOT_DIR}/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary ${TOOL} -installedDir ${PATH_TO_SEARCH}