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

Mehdi Rabah mehdi.rabah at gmail.com
Wed Apr 2 03:56:01 EDT 2008


On Tue, Apr 1, 2008 at 10:15 PM, Alexander Neundorf <a.neundorf-work at gmx.net>
wrote:

> 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.
>

ok but there must be some way to say that I want to rebuild my project when
I call this specific "sync" target ? or am I doomed for the rested of my
life to type "make all && make sync" ?



> Would "make clean all" be good enough ?


Is this a mistake or an april fool's day joke ? I wasn't talking about
"clean" so I don't get it ^^

--
Mehdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080402/6f6036df/attachment.htm>


More information about the CMake mailing list