CMake dependency scanning for .moc files

Andreas Pakulat apaku at gmx.de
Wed Apr 16 11:31:13 CEST 2008


On 15.04.08 19:19:45, Alexander Neundorf wrote:
> On Monday 14 April 2008, Andreas Pakulat wrote:
> > Hi,
> >
> > so today I found that there are actually problems with cmake 2.6 and
> > dependency scanning.
> >
> > a) after changing an installed header the .moc files for headers that
> > include the updated header are not re-generated which might cause
> > problems when you do ABI changes (like removing a method) on the
> > installed header (linking errors)
> >
> > b) removing a .moc file from the builddir doesn't produce a re-moc,
> > cmake just tells gcc to compile the non-existing .moc-file.
> >
> > I'm actually not sure wether either of the two ever worked, but IMHO  at
> > least the second one should work.
> >
> > This is was tested on CMake 2.6 and 2.4.7.
> 
> And it works with 2.4.7 but doesn't with 2.6 ?

It doesn't work with either of the two.

> This is a moc file handled via automoc, right ?

Yes. The only way to get cmake to re-generate the .moc file is to touch
the header from which its generated or remove the subdir in the builddir
that contains the .moc file.

Andreas

-- 
Are you a turtle?


More information about the Kde-buildsystem mailing list