mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[vcpkg] Switch several usages of -ExecutionPolicy Unrestricted to Bypass to avoid failures due to Mark Of The Web
This commit is contained in:
parent
cea5cb99b2
commit
eb9b85c49d
@ -64,13 +64,13 @@
|
||||
File="$(TLogLocation)$(ProjectName).write.1u.tlog"
|
||||
Lines="^$(OutputPath)$(TargetName).$(OutputType);" Encoding="Unicode"/>
|
||||
<Exec Condition="'$(VcpkgConfiguration)' == 'Debug'"
|
||||
Command="powershell.exe -ExecutionPolicy Unrestricted -noprofile -File %22$(MSBuildThisFileDirectory)applocal.ps1%22 %22$(TargetPath)%22 %22$(VcpkgRoot)debug\bin%22 %22$(TLogLocation)$(ProjectName).write.1u.tlog%22"
|
||||
Command="powershell.exe -ExecutionPolicy Bypass -noprofile -File %22$(MSBuildThisFileDirectory)applocal.ps1%22 %22$(TargetPath)%22 %22$(VcpkgRoot)debug\bin%22 %22$(TLogLocation)$(ProjectName).write.1u.tlog%22"
|
||||
ConsoleToMSBuild="true"
|
||||
StandardOutputImportance="Normal">
|
||||
<Output TaskParameter="ConsoleOutput" ItemName="ReferenceCopyLocalPaths" />
|
||||
</Exec>
|
||||
<Exec Condition="'$(VcpkgConfiguration)' == 'Release'"
|
||||
Command="powershell.exe -ExecutionPolicy Unrestricted -noprofile -File %22$(MSBuildThisFileDirectory)applocal.ps1%22 %22$(TargetPath)%22 %22$(VcpkgRoot)bin%22 %22$(TLogLocation)$(ProjectName).write.1u.tlog%22"
|
||||
Command="powershell.exe -ExecutionPolicy Bypass -noprofile -File %22$(MSBuildThisFileDirectory)applocal.ps1%22 %22$(TargetPath)%22 %22$(VcpkgRoot)bin%22 %22$(TLogLocation)$(ProjectName).write.1u.tlog%22"
|
||||
ConsoleToMSBuild="true"
|
||||
StandardOutputImportance="Normal">
|
||||
<Output TaskParameter="ConsoleOutput" ItemName="ReferenceCopyLocalPaths" />
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user