Tim Kientzle wrote:
I'm having trouble with a custom target that
depends on another custom target defined in a
subdirectory.  Here's a much-simplified version
of what I'm trying to do:

Turns out the subdirectory is a red herring.
Here's a much simpler demonstration of the bug:

$ cat CMakeLists.txt
PROJECT(foobar C)
ADD_EXECUTABLE(foo foo.c)
ADD_CUSTOM_TARGET(run_foo DEPENDS foo COMMAND foo)
ADD_CUSTOM_TARGET(run_all DEPENDS run_foo)
$ make run_all
[100%] Built target foo
Scanning dependencies of target run_foo
foo
[100%] Built target run_foo
Scanning dependencies of target run_all
make: don't know how to make run_foo. Stop
*** Error code 2
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to