mirror of https://github.com/AlexeyAB/darknet.git
add Visual studio 2017 "Enterprise" edition to edition check.
This commit is contained in:
parent
24dc5b7853
commit
44c881233a
10
build.ps1
10
build.ps1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue