CMake dependency scanning for .moc files

Alexander Neundorf neundorf at kde.org
Tue Apr 15 19:19:45 CEST 2008


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 ?

This is a moc file handled via automoc, right ?

Alex




More information about the Kde-buildsystem mailing list