Hi Shlomi

You might consider using another target, say 'check'. I've used that to
mimic more or less the GNU autotools behaviour. See
http://www.cmake.org/Wiki/CMakeEmulateMakeCheck. Don't use
EXCLUDE_FROM_ALL if you want your test programs to depend on the target
'all'.

Best regards,
Marcel Loose.

-----Original Message-----
From: Hugo Heden <[email protected]>
To: Shlomi Fish <[email protected]>
Cc: Cmake Mailing List <[email protected]>
Subject: Re: [CMake] How to make sure "make test" depends on "make all"
Date: Tue, 23 Jun 2009 10:57:16 +0200

On Tue, Jun 23, 2009 at 9:56 AM, Shlomi Fish <[email protected]>
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:
        

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


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to