Re: [CMake] multiple targets depending on generated file

2011-04-07 Thread Stephen Kelly
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 f

Re: [CMake] multiple targets depending on generated file

2011-04-07 Thread Stephen Kelly
Brad King wrote: >> >> Is this a bug in CMake? It seems there is enough information given that >> CMake could notice the dependency. But maybe it can't quite do it >> because its a separate directory? Maybe cmake can do the >> add_dependencies() automatically? > > This is expected. You need t

Re: [CMake] multiple targets depending on generated file

2011-04-05 Thread Brad King
On 04/05/2011 12:22 PM, Clinton Stimpson wrote: > > I'm looking at bug #11884 > http://public.kitware.com/Bug/view.php?id=11884 > > And I've noticed there is a problem with depending on generated headers > across > directories but not within the same directory. > > For example: > > # section

[CMake] multiple targets depending on generated file

2011-04-05 Thread Clinton Stimpson
I'm looking at bug #11884 http://public.kitware.com/Bug/view.php?id=11884 And I've noticed there is a problem with depending on generated headers across directories but not within the same directory. For example: # section A add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/out.h COMMAND ) ad