<div class="gmail_quote">On Wed, Aug 5, 2009 at 4:57 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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thursday 30 July 2009, David Cole wrote:<br>
&gt; That looks like line 201 in CMake-2-6-4 source tree. In CVS HEAD, this has<br>
&gt; moved to line 390, but the same code is still there...<br>
&gt;<br>
&gt; Looks like that whole else chunk should be removed. Unless somebody can say<br>
&gt; why it&#39;s there...?<br>
<br>
</div>In order to keep some targets from appearing in the target list of C::B (like<br>
e.g. /Experimental.+/). Apparently it also filters out custom targets, which<br>
was not intended.<br>
If the else-branch is removed, then actually the whole if-else tree can be<br>
removed.<br>
Is there a way to check whether such a target is a custom target ?</blockquote><div><br></div><div>I don&#39;t know of a way to do that, but you could:</div><div>  SET_PROPERTY(GLOBAL PROPERTY CTEST_TARGETS_ADDED 1)</div>
<div>before including CTest.cmake to prevent those custom targets from being added...</div><div><br></div><div>You could probably do that from the Code Blocks generator in C++ code if you wanted to.</div><div><br></div><div>
Better still might be to add logic to CTestTargets not to put those in IDEs where they don&#39;t make sense. (They don&#39;t make much sense in Visual Studio or Xcode either...)</div><div><br></div><div><br></div><div>David</div>
<div><br></div></div>