20 lines
323 B
PowerShell
20 lines
323 B
PowerShell
param(
|
|
[string]$InstallRoot = "D:\\vcpkg"
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
if (-not (Test-Path $InstallRoot)) {
|
|
git clone https://github.com/microsoft/vcpkg.git $InstallRoot
|
|
}
|
|
|
|
Push-Location $InstallRoot
|
|
try {
|
|
.\bootstrap-vcpkg.bat
|
|
}
|
|
finally {
|
|
Pop-Location
|
|
}
|
|
|
|
Write-Host "vcpkg is ready at $InstallRoot"
|