diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-19 15:19:18 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-23 14:16:05 -0800 |
| commit | ae582e0d4f05c210b82046b1a5cb63f395242219 (patch) | |
| tree | be92f632c686d4fc5e23b6accde3343d6bc45d9b /scripts | |
| parent | 3332326c655714fe2e1f740b5635a29c86581228 (diff) | |
| download | vcpkg-ae582e0d4f05c210b82046b1a5cb63f395242219.tar.gz vcpkg-ae582e0d4f05c210b82046b1a5cb63f395242219.zip | |
[bootstrap] Extract arguments in variable
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/bootstrap.ps1 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1 index 3f40a2ead..b4749bdd6 100644 --- a/scripts/bootstrap.ps1 +++ b/scripts/bootstrap.ps1 @@ -43,7 +43,18 @@ try $msbuildExe = $msbuildExeWithPlatformToolset[0] $platformToolset = $msbuildExeWithPlatformToolset[1] $windowsSDK = & $scriptsDir\getWindowsSDK.ps1 - & $msbuildExe "/p:VCPKG_VERSION=-$gitHash" "/p:DISABLE_METRICS=$disableMetrics" /p:Configuration=Release /p:Platform=x86 /p:PlatformToolset=$platformToolset /p:TargetPlatformVersion=$windowsSDK /m dirs.proj + + $arguments = ( + "`"/p:VCPKG_VERSION=-$gitHash`"", + "`"/p:DISABLE_METRICS=$disableMetrics`"", + "/p:Configuration=Release", + "/p:Platform=x86", + "/p:PlatformToolset=$platformToolset", + "/p:TargetPlatformVersion=$windowsSDK", + "/m", + "dirs.proj") + + & $msbuildExe $arguments if ($LASTEXITCODE -ne 0) { Write-Error "Building vcpkg.exe failed. Please ensure you have installed Visual Studio with the Desktop C++ workload and the Windows SDK for Desktop C++." |
