-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitcl.bat
25 lines (24 loc) · 2.63 KB
/
initcl.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@echo off
if not defined VSINSTALLDIR (
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio\2017\Preview\VC\Auxiliary\Build\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 15.0\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 8.0\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 7.1\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 7.0\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 6.0\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( set VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio 5.0\VC\vcvarsall.bat" ) else ( goto init_cl )
if not exist %VCVARSPATH% ( echo Failed to locate vcvarsall.bat & exit /b 1 )
:init_cl
echo call %VCVARSPATH% x64
call %VCVARSPATH% x64
)