[CMake] How to make a target depends from target 'all'

Mehdi Rabah mehdi.rabah at gmail.com
Tue Apr 1 04:59:27 EDT 2008


Hi,

I have a target 'sync' in my project and I want to rebuild all the project
when I call this target 'sync'. So I tried to make sync depends from the
target 'all' but I don't know how to do it.

I tried to add "DEPENDS all" in the ADD_CUSTOM_TARGET command but I didn't
work :  make[3]: *** No rules to build target « ../all »


How to do it ?

Regards,
--
Mehdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080401/49cbfe2b/attachment.htm>


More information about the CMake mailing list