Am 25.08.2008 um 18:07 schrieb Alan W. Irwin:

On 2008-08-25 16:30+0200 Boris Boesler wrote:


The DEPENDS of ADD_CUSTOM_TARGET expects file names, not target names. So it can't find a file named foo...
To set up inter-target dependencies, use ADD_DEPENDENCIES.

Yeah, I just found that after sending the email, but that doesn't work either (cmake 2.6.1):

ADD_CUSTOM_TARGET(foo
COMMAND echo "foo"
COMMENT "Fooing ..")

ADD_CUSTOM_TARGET(bar
COMMAND echo "bar"
DEPENDS foo
COMMENT "Bar-tender ..")
ADD_DEPENDENCIES(bar foo)

You should get rid of that DEPENDS foo.

 :-) Ahhh, now it works, thanks!

Boris

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to