From df18124beceb1c2baf78c6163b01adaadc2838cd Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 11 Jul 2025 15:14:48 +0500 Subject: [PATCH] vs-cfg.cmd - update error message To make it a bit more easier to understand what to do in cases like below (the solution is to provide generator explicitly: `run-cmake.bat vs2022-x64 -DADD_COMMIT_SHA=ON -DVERSION_OVERRIDE=ON`). ``` run-cmake.bat -DADD_COMMIT_SHA=ON -DVERSION_OVERRIDE=ON vs-cfg.cmd: The used CMake version does not support generator `-DADD_COMMIT_SHA` - cannot proceed. ``` --- win/vs-cfg.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/vs-cfg.cmd b/win/vs-cfg.cmd index 8aee1508e9..b086d6db5a 100644 --- a/win/vs-cfg.cmd +++ b/win/vs-cfg.cmd @@ -110,7 +110,7 @@ IF "!GENERATOR!"=="" IF NOT "%VisualStudioVersion%"=="" ( set GENERATOR_CHECK=%GENERATOR: Win64=% 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." +call utils\cecho.cmd 0 12 "%~nx0: The used CMake version does not support generator '`"!GENERATOR!`'"- cannot proceed." exit /b 1 )