Uncomment this line in your script:<br><pre>#CTEST_READ_CUSTOM_FILES(&quot;${CTEST_BINARY_DIRECTORY}&quot;)</pre>That&#39;s the line that reads in the CTestCustom file for a new-style script......<br><br>:-)<br><br><br><div class="gmail_quote">
On Thu, Apr 3, 2008 at 5:59 AM, Mathieu Malaterre &lt;<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
<br>
 &nbsp;Ok I must be doing something wrong: I cannot get<br>
CTEST_CUSTOM_WARNING_EXCEPTION to work.<br>
 &nbsp;Here is the ctest script:<br>
<br>
<a href="http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/CMake/CTestCustom.ctest.in?view=markup" target="_blank">http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/CMake/CTestCustom.ctest.in?view=markup</a><br>
<br>
...<br>
SET(CTEST_CUSTOM_WARNING_EXCEPTION<br>
 &nbsp;${CTEST_CUSTOM_WARNING_EXCEPTION}<br>
 &nbsp;&quot;Utilities&quot;<br>
 &nbsp;&quot;Utilities/expat&quot;<br>
 &nbsp;&quot;expat&quot;<br>
 &nbsp;)<br>
...<br>
<br>
<br>
I configured it this way:<br>
<br>
IF(BUILD_TESTING)<br>
 &nbsp;CONFIGURE_FILE(${GDCM_SOURCE_DIR}/CMake/<a href="http://CTestCustom.ctest.in" target="_blank">CTestCustom.ctest.in</a><br>
 &nbsp; &nbsp; &nbsp;${GDCM_BINARY_DIR}/CMake/CTestCustom.ctest @ONLY)<br>
 &nbsp;FILE(WRITE ${GDCM_BINARY_DIR}/CTestCustom.cmake<br>
 &nbsp; &nbsp;&quot;INCLUDE(\&quot;${GDCM_BINARY_DIR}/CMake/CTestCustom.ctest\&quot;)\n&quot;)<br>
 &nbsp;ENABLE_TESTING()<br>
 &nbsp;INCLUDE(CTest)<br>
 &nbsp;SUBDIRS(Testing)<br>
ENDIF(BUILD_TESTING)<br>
<br>
<br>
But still I am getting warnings related to building expat:<br>
<br>
<a href="http://public.kitware.com/GDCM/Testing/Sites/zorglub/GDCM2-trunk-Linux-gcc42-SVN/20080403-0100-Nightly/BuildWarning.html" target="_blank">http://public.kitware.com/GDCM/Testing/Sites/zorglub/GDCM2-trunk-Linux-gcc42-SVN/20080403-0100-Nightly/BuildWarning.html</a><br>

<br>
and nightly ctest script is:<br>
<br>
<a href="http://public.kitware.com/GDCM/Testing/Sites/zorglub/GDCM2-trunk-Linux-gcc42-SVN/20080403-0100-Nightly/Notes.html" target="_blank">http://public.kitware.com/GDCM/Testing/Sites/zorglub/GDCM2-trunk-Linux-gcc42-SVN/20080403-0100-Nightly/Notes.html</a><br>

<br>
Thanks<br>
<font color="#888888"><br>
--<br>
Mathieu<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></blockquote></div><br>