[CMake] Parallel builds and Eclipse CDT4 generator

Michael Jackson mike.jackson at bluequartz.net
Thu Mar 12 18:27:50 EDT 2009


I think that is a CDT 5.x thing, I think. I have it on my CDT 5.x  
installation but didn't remember having it on CDT 4. If there is a way  
to set that "checkbox" during the CDT project file generation then CDT  
will figure out how many compile threads to use.
  Here is a screen shot from my installation:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 1.png
Type: image/png
Size: 88070 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090312/c5dda13a/attachment-0001.png>
-------------- next part --------------



_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



On Mar 12, 2009, at 5:56 PM, Alexander Neundorf wrote:

> On Thursday 12 March 2009, Bill Hoffman wrote:
>> Alexander Neundorf wrote:
>>>> I'm using CMake 2.6.2 and Eclipse CDT5 (not CDT4, could this be an
>>>> issue?)
>>>
>>> I don't think so.
>>> We could add some special variable, like
>>> CMAKE_MAKEFILE_PROJECT_FLAGS or CMAKE_MAKEFILE_PARALLELITY, and  
>>> use this
>>> in the makefile-based generators to set the "-jx" parameter for  
>>> make. But
>>> then again, this shouldn't be hardcoded in the CMakeLists.txt, so it
>>> could only be a cache variable.
>>> Or should cmake try to determine automatically how many cores  
>>> there are
>>> and add "-jx" automatically ? E.g. using  
>>> sysconf(_SC_NPROCESSORS_ONLN) ?
>>> This could also be disabled by default and enabled e.g. via an  
>>> option
>>> like CMAKE_AUTOMATIC_PARALLEL_MAKE_INVOCATION or something like  
>>> this.
>>
>> This sounds like an Eclipse issue...  Does this work:
>>
>> http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg15742.html
>
> From that link:
>
>> project properties -> C/C++ Build -> Behaviour tab
>
> I can't find this here.
> I have Project -> Properties -> C/C++ Make project
> and then there is nothing with parallel builds.
>
> Can you see that option ?
>
> Alex
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list