Windows: Add VS2019 path discovery to msvs_env.bat (fixes issue #2925)
This commit is contained in:
parent
8c996d2efd
commit
7ecaa8afdd
|
@ -29,11 +29,13 @@ set vcvars="%CEF_VCVARS%"
|
||||||
if %vcvars% == "none" goto found_vcvars
|
if %vcvars% == "none" goto found_vcvars
|
||||||
if exist %vcvars% goto found_vcvars
|
if exist %vcvars% goto found_vcvars
|
||||||
|
|
||||||
:: Search for the default VS2017 installation path.
|
:: Search for the default VS installation path.
|
||||||
for %%x in ("%PROGRAMFILES(X86)%" "%PROGRAMFILES%") do (
|
for %%x in ("%PROGRAMFILES(X86)%" "%PROGRAMFILES%") do (
|
||||||
for %%y in (Professional Enterprise Community BuildTools) do (
|
for %%y in (2019 2017) do (
|
||||||
set vcvars="%%~x\Microsoft Visual Studio\2017\%%y\VC\Auxiliary\Build\%vcvarsbat%"
|
for %%z in (Professional Enterprise Community BuildTools) do (
|
||||||
if exist !vcvars! goto found_vcvars
|
set vcvars="%%~x\Microsoft Visual Studio\%%y\%%z\VC\Auxiliary\Build\%vcvarsbat%"
|
||||||
|
if exist !vcvars! goto found_vcvars
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue