On Friday 24 April 2009, Theodore Papadopoulo wrote:
> Alexander Neundorf wrote:
> > On Friday 24 April 2009, Theodore Papadopoulo wrote:
> > As an experience, I have tried to mimick the gnu make check as indicated
> > in the web pages,
> > Where ?
>
> http://www.cmake.org/Wiki/CMakeEmulateMakeCheck
>
> >> but decidedADD_DEPENDENCIES(test ${executable})
> >> for some reason to keep the "test" target name. But when, I issuing a
> >> ADD_DEPENDENCIES(test XXX)
> >> cmake tells me that there is no dependency name "test", but when I'm
> >> trying to add one, then it claims there
> >
> > CMake generates already a target named "test", but this is a "special
> > target", you cannot use it with add_dependencies().
> > Just use a different name for that.
>
> This I figured out. I find the behaviour puzzling. At the very least,
> the command
> ADD_DEPENDENCIES(test ${executable})
> should issue a message such as "Test is a special target that cannot be
> used with ADD_DEPENDENCIES",
> instead of a "target test does not exists". Of course, making
> ADD_DEPENDENCIES to work with target
> test would be even better....

Please add that as a bug report in the bug tracker:
http://public.kitware.com/Bug

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