vs-cfg.cmd: remove if-clause, an erroneous syntax print comes if this script is called when VS env vars not set but that's OK.

This commit is contained in:
Stinkfist0
2016-02-04 11:46:53 +02:00
parent 72999e04d9
commit 17ecc43f78
-2
View File
@@ -83,13 +83,11 @@ IF "!GENERATOR!"=="" IF NOT "%VisualStudioVersion%"=="" (
) )
:: Check that the used CMake version supports the chosen generator :: Check that the used CMake version supports the chosen generator
set GENERATOR_CHECK=%GENERATOR: Win64=% set GENERATOR_CHECK=%GENERATOR: Win64=%
IF "!GENERATOR_CHECK!"=="" (
cmake --help | findstr /c:%GENERATOR_CHECK% >nul cmake --help | findstr /c:%GENERATOR_CHECK% >nul
if not %ERRORLEVEL%==0 ( if not %ERRORLEVEL%==0 (
call utils\cecho.cmd 0 12 "%~nx0: The used CMake version does not support '`"!GENERATOR!`'"- cannot proceed." call utils\cecho.cmd 0 12 "%~nx0: The used CMake version does not support '`"!GENERATOR!`'"- cannot proceed."
exit /b 1 exit /b 1
) )
)
FOR /l %%i in (0,1,%LAST_GENERATOR_IDX%) DO ( FOR /l %%i in (0,1,%LAST_GENERATOR_IDX%) DO (
IF !GENERATOR!==!GENERATORS[%%i]! GOTO :GeneratorValid IF !GENERATOR!==!GENERATORS[%%i]! GOTO :GeneratorValid