[cmake-developers] cmake automoc breaks kde
Stephen Kelly
steveire at gmail.com
Tue Nov 22 13:44:48 EST 2011
On 11/22/2011 07:37 PM, David Faure wrote:
> On Tuesday 22 November 2011 14:33:25 Stephen Kelly wrote:
>> I think in many cases,
>> fixing KDE will just be removing the explicit include "foo.moc" which is
>> intended to run moc on foo.h, and let the automatic moc'ing do the work.
> No, to include moc_foo.cpp instead, if that's what cmake automoc would
> generate.
>
> If you don't include any moc, then the moc is compiled separately, which leads
> to slower compilation.
>
Are you sure? I think all moc files of a target which are not included
elsewhere are included in a _automoc.cpp file, which is then built as
the automoc target. See ${kdeui_BUILD_DIR}/kdeui_automoc.cpp for example.
There should be no slowdown AFAICT.
More information about the cmake-developers
mailing list