[cmake-developers] Recommended usage of OBJECT_DEPENDS

Alexander Neundorf neundorf at kde.org
Thu Jun 14 17:04:34 EDT 2012


Hi,

we hit an issue in KDE related to the usage (or not-usage) of the 
OBJECT_DEPENDS source file property.

In KDEs FindQt4.cmake the macro 
qt4_generate_moc(inCppFile outMocFile)
uses the OBJECT_DEPENDS property to enforce that the moc file is generated 
before the cpp file is built.
This seems to work reliably, at least I haven't heard of any problems with 
this since years.

Now the same macro in cmake does not set the OBJECT_DEPENDS property.

Should it ?
Is enforcing such a dependency a valid use case for OBJECT_DEPENDS ?


Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120614/7f17d51f/attachment.html>


More information about the cmake-developers mailing list