[Insight-developers] Parallel builds with CMake?

David Cole david.cole at kitware.com
Tue Oct 19 09:08:04 EDT 2010


CMake generates makefiles that are capable of parallel build with "-j N"
flags to make...

ParaView, VTK and ITK all should work with -j N.

It is possible to write CMakeLists.txt code that causes problems with
parallel builds, but they are generally sorted out rather quickly because
*everyone* uses -j N to build these days.

If you are having problems with parallel make, then details about the
specific problem (what version of compiler / make / cmake, and the
copy/pasted error message) would be helpful in order to help you...


Thanks,
David C.


On Tue, Oct 19, 2010 at 8:36 AM, Dan Mueller <dan.muel at gmail.com> wrote:

> Hi Michal,
>
> So you were actually referring to the build, not the CMake
> configuration/generation.
>
> I do not use g++/make, so I cannot explain why parallel build does not
> work, or whether you can expect so. Perhaps someone else on the list
> can comment?
>
> Cheers, Dan
>
> On 19 October 2010 14:32, Michal Suchanek <hramrach at centrum.cz> wrote:
> > On 19 October 2010 14:00, Dan Mueller <dan.muel at gmail.com> wrote:
> >> Hi Michal,
> >>
> >> What compiler are you targeting with CMake? I generate Visual Studio
> >> solutions for ITK and these build in parallel. Indeed, when this was
> >> introduced (some years back now) my build time went down by nearly an
> >> order of magnitude!
> >>
> > I am targeting  g++/make and the parallel build usually fails for
> > CMake projects, at least that has been my experience so far.
> >
> > While the configuration phase can be lengthy as well it is only minor
> > part of the build process.
> >
> > Thanks
> >
> > Michal
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101019/e870ec32/attachment.htm>


More information about the Insight-developers mailing list