MantisBT - CMake
View Issue Details
0014178CMakeCMakepublic2013-05-30 10:512013-05-30 13:06
nob 
Alex Neundorf 
normaltweakalways
closedno change required 
Linux
CMake 2.8.10.2 
 
0014178: Eclipse CDT Generator uses fixed CPU Count for parallel build
When using the Eclipse CDT4 (Unix Makefiles) Generator, CMake always generates a parallel build. While this is a generally a good idea, the number of CPUs may be to high on some projects/systems.

Here I have a Core i7 4-Core Laptop, where the ProcessorCount module reports 8 Processors. Using a parallel build with "make -j8", all compile jobs eat up all available RAM of the system, making it unusable.

It would be nice if the number parallel job count could be configurable and just falls back to the number ProcessorCount reproduces.
- Use Eclipse CDT4 - Unix Makefiles Generator
- In Eclipse, look into Project/Properties/C/C++-Make Project/Make Builder --> Build command has a fixed "-j<num>" argument which seems not configureable.

On each reinvocation of cmake, the parallel job number is set back to its default.

No tags attached.
Issue History
2013-05-30 10:51nobNew Issue
2013-05-30 13:00Alex NeundorfAssigned To => Alex Neundorf
2013-05-30 13:00Alex NeundorfStatusnew => assigned
2013-05-30 13:06Alex NeundorfNote Added: 0033155
2013-05-30 13:06Alex NeundorfStatusassigned => closed
2013-05-30 13:06Alex NeundorfResolutionopen => no change required

Notes
(0033155)
Alex Neundorf   
2013-05-30 13:06   
CMake detects the number of CPUs, and uses that to initialize the CMAKE_ECLIPSE_MAKE_ARGUMENTS cache variable, in your case "-j8".

You can modify this variable as you want e.g. via cmake-gui. It will not change during following cmake runs.

If that doesn't work, please reopen this ticket.