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