[CMake] Target dependencies
Boris Boesler
baembel at gmx.de
Mon Aug 25 09:03:34 EDT 2008
Hi!
For the cmake-code at the end of this email I get the following
error during running make (cmake runs without problems):
Scanning dependencies of target foo
[ 0%] Fooing ..
foo
[ 50%] Built target foo
Scanning dependencies of target bar
make[3]: *** No rule to make target `foo', needed by `CMakeFiles/
bar'. Stop.
make[2]: *** [CMakeFiles/bar.dir/all] Error 2
make[1]: *** [CMakeFiles/bar.dir/rule] Error 2
make: *** [bar] Error 2
No rule for target "foo" that has been built already? I can't see
what's wrong with my rules. Is it a bug?
Thanks,
Boris
ADD_CUSTOM_TARGET(foo
COMMAND echo "foo"
COMMENT "Fooing ..")
ADD_CUSTOM_TARGET(bar
COMMAND echo "bar"
DEPENDS foo
COMMENT "Bar-tender ..")
More information about the CMake
mailing list