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

Alexander Neundorf a.neundorf-work at gmx.net
Tue Apr 1 16:15:31 EDT 2008


On Tuesday 01 April 2008, Mehdi Rabah wrote:
> 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.

Targets like "all" and "clean" are not (yet) first class cmake targets, so 
they can't be used like this.
Would "make clean all" be good enough ?

Alex


More information about the CMake mailing list