[cmake-developers] linked-usage-cleanup regressed automoc

Alexander Neundorf neundorf at kde.org
Wed Feb 20 15:12:08 EST 2013


On Wednesday 20 February 2013, Stephen Kelly wrote:
> Brad King wrote:
> > Please fix and add this case to the tests.
> 
> I've added fix-automoc-linker-language to stage. Alex, could you review
> please?

If I see it correctly, actually nothing is done to each target between the 
calls to InitializeMocSourceFile() and the following SetupAutomocTarget().
So instead of running two loops over the targets, shouldn't it be enough to 
add the source file to the target early on in SetupAutomocTarget(), e.g. 
before the call to AddUtilityCommand() ?

Alex



More information about the cmake-developers mailing list