add Visual studio 2017 "Enterprise" edition to edition check.

This commit is contained in:
none 2019-03-18 09:17:17 +09:00
parent 24dc5b7853
commit 44c881233a
1 changed files with 7 additions and 3 deletions

View File

@ -30,12 +30,16 @@ if ($vcpkg_triplet -Match "x86") {
if ($null -eq (Get-Command "cl.exe" -ErrorAction SilentlyContinue)) {
$vstype = "Professional"
if (Test-Path "C:\Program Files (x86)\Microsoft Visual Studio\2017\${vstype}\Common7\Tools") {
Write-Host "Found VS 2017 Professional"
}
else {
$vstype = "Community"
Write-Host "Found VS 2017 Community"
$vstype = "Enterprise"
if (Test-Path "C:\Program Files (x86)\Microsoft Visual Studio\2017\${vstype}\Common7\Tools") {
}
else {
$vstype = "Community"
}
}
Write-Host "Found VS 2017 ${vstype}"
Push-Location "C:\Program Files (x86)\Microsoft Visual Studio\2017\${vstype}\Common7\Tools"
cmd /c "VsDevCmd.bat -arch=x64 & set" |
ForEach-Object {