Suggestion: Enable parallel builds with make -j NUMBER in build
sluedecke opened this issue · 1 comments
sluedecke commented
On my machine the provided build
file compiles a lot faster when I add -j 4
to the make command.
In general one could add -j `nproc`
:
./buildt
rm CMakeCache.txt
cmake . \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_STANDARD="11" \
&& make -j `nproc`
But I have an SSD and a nice CPU as well (https://stackoverflow.com/questions/2499070/gnu-make-should-the-number-of-jobs-equal-the-number-of-cpu-cores-in-a-system)