Skip to content
Snippets Groups Projects
Commit 36127172 authored by Boris Basic's avatar Boris Basic
Browse files

Set the number of build processes to half the number of cores

parent 0b45f6c0
No related branches found
No related tags found
No related merge requests found
......@@ -347,13 +347,16 @@ rem * CMake build function *
rem ************************
set lib=%~1
rem Set the number of build processes
set /a build_proc=%number_of_processors%/2
if %compiler% == mingw (
set cmake_config_options=%cmake_config_options% -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE:STRING=Release
set cmake_build_options=-j 4
set cmake_build_options=-j %build_proc%
) else (
if %compiler% == intel (
set cmake_config_options=%cmake_config_options% -G "Visual Studio 16 2019" -A x64 -T "Intel C++ Compiler 19.2" -DCMAKE_CONFIGURATION_TYPES:STRING=Release
set cmake_build_options=--config Release -j 4
set cmake_build_options=--config Release -j %build_proc%
) else (
echo Unknown compiler: %compiler%.
exit /b 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment