That variable exists already, but it is named &quot;<span style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255,255,255)">CTEST_CUSTOM_ERROR_EXCEPTION</span>&quot;<div><br></div><div>See this wiki page:</div>
<div><br></div><div>  <a href="http://cmake.org/Wiki/CMake/Testing_With_CTest#Customizing_CTest">http://cmake.org/Wiki/CMake/Testing_With_CTest#Customizing_CTest</a></div><div><br></div><div>Put that variable in a file called CTestCustom.cmake in your build tree. CTEST_CUSTOM_ERROR_EXCEPTION and the variables like it are lists of regular expressions.<br>
<br>See also this blog post of mine from quite a while back (but still relevant):</div><div><br></div><div>  <a href="http://www.kitware.com/blog/home/post/27">http://www.kitware.com/blog/home/post/27</a><br><br><br>Cheers,</div>
<div>David</div><div><br></div><div><br><div class="gmail_quote">On Fri, Aug 17, 2012 at 4:49 AM, Kay-Uwe &#39;Kiwi&#39; Lorenz <span dir="ltr">&lt;<a href="mailto:kay@moduleworks.com" target="_blank">kay@moduleworks.com</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>
we are using cmake in big build environment with Visual Studio and<br>
Xoreax IncrediBuild. For debugging purpose we have turned on printing<br>
commandlines in IncrediBuild. This produces lines like:<br>
<br>
Generating res/resource_config.h<br>
--------------------<u></u>Configuration: MachSimIntegrationSample - Release|x64------<br>
|    i:\kiwi\migration\tools\cmake\<u></u>bin\cmake.exe -E make_directory I:/kiwi/migration/tmp/dev-<u></u>VS2008_x64_no-SCL/Binaries/<u></u>lib/Release<br>
|   if errorlevel 1 goto :VCReportError<br>
|<br>
|   if errorlevel 1 goto VCReportError<br>
|   goto VCEnd<br>
|   :VCReportError<br>
|   echo Project : error PRJ0019: A tool returned an error code: &quot;Performing Pre-Link Event...&quot;<br>
|   exit 1<br>
|   :VCEnd<br>
Performing Pre-Link Event...<br>
<br>
Where the lines starting with &quot;|&quot; are the commands. In CDash now<br>
the line<br>
    |   echo Project : error PRJ0019: A tool returned an error code: &quot;Performing Pre-Link Event...&quot;<br>
is marked as error, because one of the predefined patterns match this line.<br>
<br>
So we need<br>
<br>
a) either the opportunity to tell ctest not to use any predefined<br>
   error, warning, exception, etc. patterns for grepping out error<br>
   lines (and then setup a custom set)<br>
<br>
b) or the opportunity to filter the lines passed to ProcessSingleLine()<br>
   where they are marked as error, warning, etc.<br>
<br>
   e.g. CTEST_CUSTOM_BUILDLOG_SKIP=&lt;<u></u>first-pattern&gt;;&lt;second-<u></u>pattern&gt;<br>
<br>
   Then I could set<br>
       CTEST_CUSTOM_BUILDLOG_SKIP=^\\<u></u>|<br>
<br>
What do you think? I would prefer b).<br>
<br>
I could implement it on my own, but I would rather not like to have a &quot;custom cmake&quot;<br>
in production.<br>
<br>
For now we can turn off to display commands, but this complicates debugging.<br>
<br>
Kind regards<br>
Kiwi<br>
<br>
-- <br>
<br>
Kay-Uwe (Kiwi) Lorenz<br>
IT Department<br>
ModuleWorks GmbH<br>
Ritterstr. 12a<br>
52072 Aachen<br>
Germany<br>
<br>
HRB 11871<br>
Amtsgericht Aachen<br>
Geschäftsführer Yavuz Murtezaoglu<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/<u></u>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/<u></u>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/<u></u>listinfo/cmake</a><br>
</blockquote></div><br></div>