[CMake] multiple targets depending on generated file

Stephen Kelly steveire at gmail.com
Thu Apr 7 16:53:40 EDT 2011


Stephen Kelly wrote:

> but sometimes I
> still get build failures due to the dbus xml stuff that I haven't 
tracked
> down and which are resolved on the next build.
> 

I think this is because I was missing some 

add_dependencies(foo dbus_interfaces_xml)

in my app, so hopefully that's resolved for me now.

Nevertheless, if this can't be fixed in CMake, the fix should be 
documented. The fix for the example in the bug report is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix.patch
Type: text/x-patch
Size: 1866 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110407/67ae594b/attachment.bin>


More information about the CMake mailing list