make KDE4_AUTOMOC compatible to qmake

Alexander Neundorf neundorf at kde.org
Tue Jun 19 03:59:14 CEST 2007


On Monday 18 June 2007 19:13, Matthias Kretz wrote:
> On Monday 18 June 2007, Alexander Neundorf wrote:
> > So you didn't have any problems ?
>
> See kdepim/kresources/groupdav/CMakeLists.txt lines 17 and 48. It defines
> two different targets with the same target name. The same on lines 31 and
> 63.
>
> This results in the _automoc.files file to be overwritten and the moc files
> for the first target are not generated.
>
> Is this a bug in the CMakeLists.txt?

Yes, target names must be unique. If the same name is needed, 
SET_TARGET_PROPERTIES(OUTPUT_NAME ) has to be used in such cases for one of 
the two targets.

Alex



More information about the Kde-buildsystem mailing list