CDash &quot;configure&quot; warnings are computed dynamically by CDash based only on the configure output itself with php code like this:<div><div><br></div><div>    $pos1 = strpos($log, &#39;CMake Warning&#39;, $position);</div>
<div>    $pos2 = strpos($log, &#39;Warning:&#39;, $position);</div><div><br></div><div>(see CDash/models/buildconfigure.php for more details)</div><div><br></div><div>So the only way to avoid them showing up on CDash is to avoid emitting the warnings in the first place.</div>
<div><br></div><div><br></div><div>You can use code like this in your CMakeLists file if you wish to show the warning only for non-dashboard builds:</div><div><div><br></div><div>  if(&quot;$ENV{DASHBOARD_TEST_FROM_CTEST}&quot; STREQUAL &quot;&quot;)</div>
<div>    # developer (non-dashboard) build</div><div>    message(WARNING &quot;show warning to real user&quot;)</div><div>  else()</div><div>    # dashboard build</div><div>    message(STATUS &quot;avoiding warning on dashboard&quot;)</div>
<div>  endif()</div></div><div><br></div><div>That environment variable is set by ctest only when it is running a dashboard via the -D command line options, or via a -S script.</div><div><br></div><div><br></div>HTH,</div>
<div>David</div><div><br></div><div><br><div class="gmail_quote">On Fri, May 25, 2012 at 5:38 AM, Matthias Kretz <span dir="ltr">&lt;<a href="mailto:kretz@kde.org" target="_blank">kretz@kde.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
in my project I added a few warnings to tell users of the library about<br>
compiler issues or such. But when I run a nightly build with such a compiler I<br>
really don&#39;t care to see that warning (well, rather I&#39;d like to see a warning<br>
if the warning is missing) on the dashboard. But I didn&#39;t succeed in ignoring<br>
the warning yet. It appears that CTEST_CUSTOM_WARNING_EXCEPTION is not used<br>
for configure output, is it?<br>
Do you know of any way to do it, or would it be possible to have some way to<br>
do it in a future version?<br>
<br>
Regards,<br>
        Matthias<br>
--<br>
________________________________________________________<br>
Matthias Kretz (Germany)                            &lt;&gt;&lt;<br>
<a href="http://kretzfamily.de/" target="_blank">http://kretzfamily.de/</a><br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>