[cmake-developers] [CMake 0014178]: Eclipse CDT Generator uses fixed CPU Count for parallel build

Mantis Bug Tracker mantis at public.kitware.com
Thu May 30 10:51:39 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14178 
====================================================================== 
Reported By:                nob
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14178
Category:                   CMake
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-05-30 10:51 EDT
Last Modified:              2013-05-30 10:51 EDT
====================================================================== 
Summary:                    Eclipse CDT Generator uses fixed CPU Count for
parallel build
Description: 
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.

Steps to Reproduce: 
- 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.


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-05-30 10:51 nob            New Issue                                    
======================================================================




More information about the cmake-developers mailing list