make clean doesn't delete moc files
Matthias Kretz
kretz at kde.org
Thu Feb 5 19:30:16 CET 2009
Hi,
On Thursday 05 February 2009 18:56:23 Mike Arthur wrote:
> On Thursday 05 February 2009 17:53:20 Michael Pyne wrote:
> > On Thursday 05 February 2009, David Faure wrote:
> > > Shouldn't it?
> >
> > Yes, it should. Probably some flag that needs to be added in Automoc to
> > cause CMake to add them to the list of files to be cleaned?
>
> SET_DIRECTORY_PROPERTIES(PROPERTIES
> ADDITIONAL_MAKE_CLEAN_FILES "${VariableContainingMocFiles}")
>
> That'll do it.
It sounds too easy. But reality is that the cmake scripts don't know what moc
files exist/will be created. The only one that knows is the automoc
executable. So that one could delete the files once cmake gets support for
running an external command on make clean. For now it can only delete files -
without globbing...
ideas how to delete the moc files are welcome
BTW, deleting the moc files is not important to get a clean build. If you do a
make clean automoc will recreate all moc files, regardless of whether they
exist already. So removing the moc files is only interesting for in source
builds.
Regards,
Matthias
--
________________________________________________________
Matthias Kretz (Germany) <><
http://Vir.homelinux.org/
More information about the Kde-buildsystem
mailing list