[CMake] Using CTEST_CUSTOM_WARNING_EXCEPTION

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Apr 3 05:59:24 EDT 2008


Hi,


  Ok I must be doing something wrong: I cannot get
CTEST_CUSTOM_WARNING_EXCEPTION to work.
  Here is the ctest script:

http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/CMake/CTestCustom.ctest.in?view=markup

...
SET(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  "Utilities"
  "Utilities/expat"
  "expat"
  )
...


I configured it this way:

IF(BUILD_TESTING)
  CONFIGURE_FILE(${GDCM_SOURCE_DIR}/CMake/CTestCustom.ctest.in
      ${GDCM_BINARY_DIR}/CMake/CTestCustom.ctest @ONLY)
  FILE(WRITE ${GDCM_BINARY_DIR}/CTestCustom.cmake
    "INCLUDE(\"${GDCM_BINARY_DIR}/CMake/CTestCustom.ctest\")\n")
  ENABLE_TESTING()
  INCLUDE(CTest)
  SUBDIRS(Testing)
ENDIF(BUILD_TESTING)


But still I am getting warnings related to building expat:

http://public.kitware.com/GDCM/Testing/Sites/zorglub/GDCM2-trunk-Linux-gcc42-SVN/20080403-0100-Nightly/BuildWarning.html

and nightly ctest script is:

http://public.kitware.com/GDCM/Testing/Sites/zorglub/GDCM2-trunk-Linux-gcc42-SVN/20080403-0100-Nightly/Notes.html

Thanks

-- 
Mathieu


More information about the CMake mailing list