When I build a CMake project, the dependency scanning is slow. Investigating with htop for my large project pointed me to the command
/usr/bin/cmake -E cmake_depends Makefiles [...]
which is running on a single thread. Can this be speed up? Maybe with parallelism / multi-threading?
"Solution"
I use ninja from now on, which is much faster in detecting deps and collecting needed data for compillation.
Thank you for all the answers!