Skip to content

Commit

Permalink
Make.bat: add Ninja as generator
Browse files Browse the repository at this point in the history
  • Loading branch information
howetuft authored Feb 26, 2025
1 parent e8d0e29 commit 35732bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@ if "%COMMAND%" == "" (
)
exit /B

:InvokeCMake
:InvokeCMakeConfig
setlocal
for /f "delims=" %%A in ('python cmake\get_preset.py') do set "PRESET=%%A"
echo CMake preset: %PRESET%
set TARGET=%1
cmake --build --preset conan-release --target %TARGET% %BUILD_CMAKE_ARGS%
cmake %BUILD_CMAKE_ARGS% --preset %PRESET% -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% -S %SOURCE_DIR% -G Ninja
endlocal
goto :EOF

:InvokeCMakeConfig
:InvokeCMake
setlocal
for /f "delims=" %%A in ('python cmake\get_preset.py') do set "PRESET=%%A"
echo CMake preset: %PRESET%
cmake %BUILD_CMAKE_ARGS% --preset %PRESET% -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% -S %SOURCE_DIR%
set TARGET=%1
cmake --build --preset conan-release --target %TARGET% %BUILD_CMAKE_ARGS%
endlocal
goto :EOF

Expand Down

0 comments on commit 35732bc

Please sign in to comment.