aboutsummaryrefslogtreecommitdiff
path: root/ports/pmdk/addPowerShellExecutionPolicy.patch
diff options
context:
space:
mode:
authorCheney-Wang <vcwrkspc@microsoft.com>2018-05-09 04:30:38 -0700
committerCheney-Wang <vcwrkspc@microsoft.com>2018-05-09 04:30:38 -0700
commitd91e2ef669e45db8c62f320ad87b51f8e4ce9bed (patch)
tree604a099c1902259d6d6cdf9aa5a9b5508c934523 /ports/pmdk/addPowerShellExecutionPolicy.patch
parent7e7958739ed7e87617465235f8f9306ae521e82e (diff)
downloadvcpkg-d91e2ef669e45db8c62f320ad87b51f8e4ce9bed.tar.gz
vcpkg-d91e2ef669e45db8c62f320ad87b51f8e4ce9bed.zip
FixpmdkFailure
Diffstat (limited to 'ports/pmdk/addPowerShellExecutionPolicy.patch')
-rw-r--r--ports/pmdk/addPowerShellExecutionPolicy.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/ports/pmdk/addPowerShellExecutionPolicy.patch b/ports/pmdk/addPowerShellExecutionPolicy.patch
new file mode 100644
index 000000000..bb03d23bb
--- /dev/null
+++ b/ports/pmdk/addPowerShellExecutionPolicy.patch
@@ -0,0 +1,22 @@
+diff --git a/srcversion.vcxproj b/srcversion.vcxproj
+index 8761197..795d1a7 100644
+--- a/srcversion.vcxproj
++++ b/srcversion.vcxproj
+@@ -72,7 +72,7 @@
+ </Command>
+ </PreBuildEvent>
+ <CustomBuildStep>
+- <Command>powershell.exe -file "$(SolutionDir)..\utils\SRCVERSION.ps1" $(SRCVERSION)</Command>
++ <Command>powershell.exe -ExecutionPolicy Bypass -file "$(SolutionDir)..\utils\SRCVERSION.ps1" $(SRCVERSION)</Command>
+ <Outputs>__NON_EXISTENT_FILE__</Outputs>
+ <Message>generate srcversion.h</Message>
+ </CustomBuildStep>
+@@ -99,7 +99,7 @@
+ </Command>
+ </PreBuildEvent>
+ <CustomBuildStep>
+- <Command>powershell.exe -file "$(SolutionDir)..\utils\SRCVERSION.ps1" $(SRCVERSION)</Command>
++ <Command>powershell.exe -ExecutionPolicy Bypass -file "$(SolutionDir)..\utils\SRCVERSION.ps1" $(SRCVERSION)</Command>
+ <Outputs>__NON_EXISTENT_FILE__</Outputs>
+ <Message>generate srcversion.h</Message>
+ </CustomBuildStep>