CMake dependency scanning for .moc files
Alexander Neundorf
neundorf at kde.org
Wed Apr 16 19:49:03 CEST 2008
On Wednesday 16 April 2008, Andreas Pakulat wrote:
> 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.
Ok, so it's at least no cmake 2.6 problem, but automoc.
> > 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.
Matthias, can you have a look ?
Alex
More information about the Kde-buildsystem
mailing list