Uncomment this line in your script:<br><pre>#CTEST_READ_CUSTOM_FILES("${CTEST_BINARY_DIRECTORY}")</pre>That'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 <<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>> 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>
Ok I must be doing something wrong: I cannot get<br>
CTEST_CUSTOM_WARNING_EXCEPTION to work.<br>
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>
${CTEST_CUSTOM_WARNING_EXCEPTION}<br>
"Utilities"<br>
"Utilities/expat"<br>
"expat"<br>
)<br>
...<br>
<br>
<br>
I configured it this way:<br>
<br>
IF(BUILD_TESTING)<br>
CONFIGURE_FILE(${GDCM_SOURCE_DIR}/CMake/<a href="http://CTestCustom.ctest.in" target="_blank">CTestCustom.ctest.in</a><br>
${GDCM_BINARY_DIR}/CMake/CTestCustom.ctest @ONLY)<br>
FILE(WRITE ${GDCM_BINARY_DIR}/CTestCustom.cmake<br>
"INCLUDE(\"${GDCM_BINARY_DIR}/CMake/CTestCustom.ctest\")\n")<br>
ENABLE_TESTING()<br>
INCLUDE(CTest)<br>
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>