[CMake] How to make sure "make test" depends on "make all"
Shlomi Fish
shlomif at iglu.org.il
Thu Jun 25 14:09:00 EDT 2009
On Thursday 25 June 2009 19:00:11 Tyler Roscoe wrote:
> On Thu, Jun 25, 2009 at 04:58:46PM +0300, Shlomi Fish wrote:
> > On Thursday 25 June 2009 14:50:39 Marcel Loose wrote:
> > > As you already found out the hard way, it is not possible to let the
> > > target 'all' depend on, e.g., 'test'. Targets like 'all' and 'test' are
> > > special to CMake.
> >
> > OK. I want "check" or "test" to depend on "all" - not vice versa.
>
> The best way I can think of is to collect all the targets that are run
> when you do "make all" into ${all_targets} and then do:
>
> add_dependencies (check ${all_targets})
>
Yes, I've thought about it too. More work and somewhat more complicated logic,
but it may be worth it.
Or I can try fixing the CMake bug at the source.
Thanks!
Regards,
Shlomi Fish
> hth,
> tyler
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
The Case for File Swapping - http://xrl.us/bjn7i
God gave us two eyes and ten fingers so we will type five times as much as we
read.
More information about the CMake
mailing list