[CMake] How to make sure "make test" depends on "make all"

Shlomi Fish shlomif at iglu.org.il
Wed Jun 24 08:08:27 EDT 2009


On Tuesday 23 June 2009 11:57:16 Hugo Heden wrote:
> On Tue, Jun 23, 2009 at 9:56 AM, Shlomi Fish <shlomif at iglu.org.il> wrote:
> > Hi all!
> >
> > I'm using cmake-2.6.4-3mdv2010.0 on Mandriva Linux Cooker, and ran into a
> > problem. I want "make test" (which is a custom target) to depend on "make
> > all", in this codebase:
> >
> >  <http://svn.berlios.de/svnroot/repos/fc-solve/trunk/fc-solve/source/>
>
> I can't say that I understand the error messages you're getting, but it is
> unfortunately *not* possible to make built-in targets like "test", "all"
> and "install" depend on each other. See for example this bug:
>
> http://public.kitware.com/Bug/view.php?id=8438

Interesting. Is this a bug or a (mis-)feature? If I work on it and contribute 
a patch that will fix it, will it be accepted?

Regards,

	Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Rethinking CPAN - http://xrl.us/bjn7p

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