<div class="gmail_quote">On Sun, Apr 26, 2009 at 11:14 PM, Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>&gt;</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">&gt; Alexander Neundorf wrote:<br>
&gt; &gt; On Friday 24 April 2009, Theodore Papadopoulo wrote:<br>
</div><div class="im">&gt; &gt; As an experience, I have tried to mimick the gnu make check as indicated<br>
&gt; &gt; in the web pages,<br>
&gt; &gt; Where ?<br>
&gt;<br>
</div>&gt; <a href="http://www.cmake.org/Wiki/CMakeEmulateMakeCheck" target="_blank">http://www.cmake.org/Wiki/CMakeEmulateMakeCheck</a><br>
&gt;<br>
&gt; &gt;&gt; but decidedADD_DEPENDENCIES(test ${executable})<br>
<div class="im">&gt; &gt;&gt; for some reason to keep the &quot;test&quot; target name. But when, I issuing a<br>
&gt; &gt;&gt; ADD_DEPENDENCIES(test XXX)<br>
&gt; &gt;&gt; cmake tells me that there is no dependency name &quot;test&quot;, but when I&#39;m<br>
&gt; &gt;&gt; trying to add one, then it claims there<br>
&gt; &gt;<br>
&gt; &gt; CMake generates already a target named &quot;test&quot;, but this is a &quot;special<br>
&gt; &gt; target&quot;, you cannot use it with add_dependencies().<br>
&gt; &gt; Just use a different name for that.<br>
&gt;<br>
</div>&gt; This I figured out. I find the behaviour puzzling. At the very least,<br>
&gt; the command<br>
&gt; ADD_DEPENDENCIES(test ${executable})<br>
&gt; should issue a message such as &quot;Test is a special target that cannot be<br>
&gt; used with ADD_DEPENDENCIES&quot;,<br>
&gt; instead of a &quot;target test does not exists&quot;. Of course, making<br>
&gt; ADD_DEPENDENCIES to work with target<br>
&gt; 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>