When not defined, default VS150COMNTOOLS to C:\Program Files (#1787)

(x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\
See 
https://developercommunity.visualstudio.com/content/problem/13223/no-environmental-variable-vscomntools150.html
This commit is contained in:
zosrothko 2017-07-05 23:58:19 +02:00 committed by Aleksandar Fabijanic
parent 128c5c57eb
commit 62af826c88

View File

@ -40,6 +40,9 @@ rem VS_VERSION {90 | 100 | 110 | 120 | 140 | 150}
if "%1"=="" goto usage
set VS_VERSION=vs%1
if %VS_VERSION%==vs150 (
if "%VS150COMNTOOLS%"=="" (
set VS150COMNTOOLS=C:\Program Files ^(x86^)\Microsoft Visual Studio\2017\Community\Common7\Tools\
)
set VS_VARSALL=..\..\VC\Auxiliary\Build\vcvarsall.bat
) else (
set VS_VARSALL=..\..\VC\vcvarsall.bat