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 (