Reputation: 22981
I have several projects which all rely on a basic library. Now when I change a header file in this basic library I have to rebuild all dependent projects. Currently Eclipse/CDT builds one project after another. How can I build all these projects in parallel?
Please note that I already use the -j (parallel compiling) option for each project. But this is not enough because:
Upvotes: 11
Views: 5193
Reputation: 1336
Project Properties > C++ Build > Behaviour > Enable Parallel Build
Upvotes: 2
Reputation: 55524
I don't think the current version of Eclipse CDT can build projects in parallel, but you can achieve the same effect by having an Eclipse CDT Makefile project which builds multiple binaries (libraries and executables).
A simple way to generate such project is by using CMake with Eclipse CDT4 - Unix Makefiles generator. Then if you specify /usr/bin/make -j<n>
as a build command, where n
is the number of parallel jobs in Project Properties, it will build your targets (not only source files) in parallel.
Upvotes: 2