how to build generated sources in parallel with out linking them together?

Stephan Kulow coolo at
Wed Feb 21 15:44:45 CET 2007

Am Mittwoch, 21. Februar 2007 15:02 schrieb Dirk Mueller:
> Hi,
> coolo and I are wondering how to add a custom target, that when invoked,
> builds a lot of generated sources (consisting of a couple of custom compile
> defines and an include statement) in parallel (up to the usual make -j
> parallelism level) and does not link them together (because linking does
> not work).
> any idea how to do that with cmake?
> we've tried to define sources and add_executable (which however links and
> does not work), and we've tried to add a custom target that depends on the
> object files (which does not work because the object fiels are not
> compiled) and we've tried checkcxxsourcecompiles (which does not work
> because it is not done parallel).
> So... ?

I set the LINKER_FLAGS now to "-v; true"; which makes sure the linker does not 
link but returns true - and I'll end up in buildsystem hell ;)

Greetings, Stephan

More information about the Kde-buildsystem mailing list