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

Hugo Heden hugoheden at gmail.com
Tue Jun 23 04:57:16 EDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090623/14923005/attachment.htm>


More information about the CMake mailing list