[CMake] Moc before other operations with make -jN

Craig Bradney cbradney at zip.com.au
Mon Aug 7 18:04:39 EDT 2006


On Monday 07 August 2006 15:16, William A. Hoffman wrote:
> At 05:39 PM 8/6/2006, Craig Bradney wrote:
> >Hi,
> >
> >I'm wondering if theres any known issues with dependencies when running
> > the make stage where you use make -jN (I'm using N=3 on a core duo) and
> > moc is not occurring before the resulting files are required? Source is
> > current Scribus 1.3.4cvs, and cmake cvs.
>
> No issues, the only thing that I could think that would cause this is if
> a the results of a moc file are used by a target that does not include
> the sources of the moc files, an indirect link.   Make -j builds are
> working well for KDE with lots of moc going on.
>
> Do you have something like this:
>
> A generates foo.h via moc
> B has a file that includes foo.h
>
> In this case you would add:
>
> ADD_DEPENDENCIES (B A)

Ah Ok.. cool.. I will have a look for this and get back to you if I cannot 
work it out.

Thanks,
Craig


More information about the CMake mailing list