<div class="gmail_quote">On Sun, Apr 26, 2009 at 11:14 PM, Alexander Neundorf <span dir="ltr"><<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Friday 24 April 2009, Theodore Papadopoulo wrote:<br>
</div><div class="im">> Alexander Neundorf wrote:<br>
> > On Friday 24 April 2009, Theodore Papadopoulo wrote:<br>
</div><div class="im">> > As an experience, I have tried to mimick the gnu make check as indicated<br>
> > in the web pages,<br>
> > Where ?<br>
><br>
</div>> <a href="http://www.cmake.org/Wiki/CMakeEmulateMakeCheck" target="_blank">http://www.cmake.org/Wiki/CMakeEmulateMakeCheck</a><br>
><br>
> >> but decidedADD_DEPENDENCIES(test ${executable})<br>
<div class="im">> >> for some reason to keep the "test" target name. But when, I issuing a<br>
> >> ADD_DEPENDENCIES(test XXX)<br>
> >> cmake tells me that there is no dependency name "test", but when I'm<br>
> >> trying to add one, then it claims there<br>
> ><br>
> > CMake generates already a target named "test", but this is a "special<br>
> > target", you cannot use it with add_dependencies().<br>
> > Just use a different name for that.<br>
><br>
</div>> This I figured out. I find the behaviour puzzling. At the very least,<br>
> the command<br>
> ADD_DEPENDENCIES(test ${executable})<br>
> should issue a message such as "Test is a special target that cannot be<br>
> used with ADD_DEPENDENCIES",<br>
> instead of a "target test does not exists". Of course, making<br>
> ADD_DEPENDENCIES to work with target<br>
> test would be even better....<br>
<br>
Please add that as a bug report in the bug tracker:<br>
<a href="http://public.kitware.com/Bug" target="_blank">http://public.kitware.com/Bug</a><br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br>Something very similar is reported here: <a href="http://public.kitware.com/Bug/view.php?id=8438">http://public.kitware.com/Bug/view.php?id=8438</a> <br>
</div></div><br>