build.bat support input -j value

This commit is contained in:
chenjianping 2020-04-16 06:18:25 +00:00
parent 58b013c319
commit a9426cbd89
1 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,11 @@ IF NOT %errorlevel% == 0 (
goto run_fail
)
cmake --build . --target all -- -j6
IF "%1%" == "" (
cmake --build . --target all -- -j6
) ELSE (
cmake --build . --target all -- -j%1%
)
IF NOT %errorlevel% == 0 (
goto run_fail
)