CDash "configure" 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, 'CMake Warning', $position);</div>
<div> $pos2 = strpos($log, 'Warning:', $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("$ENV{DASHBOARD_TEST_FROM_CTEST}" STREQUAL "")</div>
<div> # developer (non-dashboard) build</div><div> message(WARNING "show warning to real user")</div><div> else()</div><div> # dashboard build</div><div> message(STATUS "avoiding warning on dashboard")</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"><<a href="mailto:kretz@kde.org" target="_blank">kretz@kde.org</a>></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't care to see that warning (well, rather I'd like to see a warning<br>
if the warning is missing) on the dashboard. But I didn'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) <><<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>