From 17ecc43f7892ae45b61519acca00883240762a87 Mon Sep 17 00:00:00 2001 From: Stinkfist0 Date: Thu, 4 Feb 2016 11:46:53 +0200 Subject: [PATCH] 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. --- win/vs-cfg.cmd | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/win/vs-cfg.cmd b/win/vs-cfg.cmd index eb10384abf..92c0a1217d 100644 --- a/win/vs-cfg.cmd +++ b/win/vs-cfg.cmd @@ -83,12 +83,10 @@ IF "!GENERATOR!"=="" IF NOT "%VisualStudioVersion%"=="" ( ) :: Check that the used CMake version supports the chosen generator set GENERATOR_CHECK=%GENERATOR: Win64=% -IF "!GENERATOR_CHECK!"=="" ( - cmake --help | findstr /c:%GENERATOR_CHECK% >nul - if not %ERRORLEVEL%==0 ( - call utils\cecho.cmd 0 12 "%~nx0: The used CMake version does not support '`"!GENERATOR!`'"- cannot proceed." - exit /b 1 - ) +cmake --help | findstr /c:%GENERATOR_CHECK% >nul +if not %ERRORLEVEL%==0 ( +call utils\cecho.cmd 0 12 "%~nx0: The used CMake version does not support '`"!GENERATOR!`'"- cannot proceed." +exit /b 1 ) FOR /l %%i in (0,1,%LAST_GENERATOR_IDX%) DO (