diff options
| author | Alexander Karatarakis <alex@karatarakis.com> | 2018-05-17 16:59:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-17 16:59:35 -0700 |
| commit | a4b4f0ddfa990cb32feb443c6f8e208197ca5197 (patch) | |
| tree | 96c1aafd5b30afdd043e63773720037ff31c89e1 /ports/pmdk/addPowerShellExecutionPolicy.patch | |
| parent | 74673fa7eb1b160ea745c13e1f31887e5ba1008d (diff) | |
| parent | 8ee61ea6d0b2d9ebdad10de347cff9a926d8eee5 (diff) | |
| download | vcpkg-a4b4f0ddfa990cb32feb443c6f8e208197ca5197.tar.gz vcpkg-a4b4f0ddfa990cb32feb443c6f8e208197ca5197.zip | |
Merge pull request #3469 from Cheney-W/fixpmdkFailedInWiC
FixPmdkFailure
Diffstat (limited to 'ports/pmdk/addPowerShellExecutionPolicy.patch')
| -rw-r--r-- | ports/pmdk/addPowerShellExecutionPolicy.patch | 22 |
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..692ff176a --- /dev/null +++ b/ports/pmdk/addPowerShellExecutionPolicy.patch @@ -0,0 +1,22 @@ +diff --git a/src/windows/srcversion/srcversion.vcxproj b/src/windows/srcversion/srcversion.vcxproj
+index 8761197..795d1a7 100644
+--- a/src/windows/srcversion/srcversion.vcxproj
++++ b/src/windows/srcversion/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>
|
