mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[bootstrap] Extract arguments in variable
This commit is contained in:
parent
3332326c65
commit
ae582e0d4f
@ -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++."
|
||||
|
Loading…
x
Reference in New Issue
Block a user