Commit 6b28a00c authored by jcfr's avatar jcfr
Browse files

COMP: Add WARNING_EXCEPTION rules to CTestCustom.cmake.in

The added rules will prevent itk, vtk and qt warnings to show up.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@11580 3bd1e089-480b-0410-8dfb-8563597acbee
parent 68c2aa9f
......@@ -513,9 +513,13 @@ if(BUILD_DOCUMENTATION)
add_subdirectory(Utilities/Doxygen)
endif(BUILD_DOCUMENTATION)
# setup file for setting custom ctest vars
configure_file(${Slicer3_SOURCE_DIR}/CTestCustom.cmake.in
${Slicer3_BINARY_DIR}/CTestCustom.cmake @ONLY)
#-----------------------------------------------------------------------------
# Setup file for setting custom ctest vars
CONFIGURE_FILE(
${Slicer3_SOURCE_DIR}/CTestCustom.cmake.in
${Slicer3_BINARY_DIR}/CTestCustom.cmake
@ONLY
)
#-----------------------------------------------------------------------------
# Set up for building against a Slicer3 build tree and a Slicer3 installation
......
#
# For further details regarding this file,
# see http://www.vtk.org/Wiki/CMake_Testing_With_CTest#Customizing_CTest
#
SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 50)
SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 50)
......@@ -23,3 +28,32 @@ SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
# Exclude Qt source files from coverage results:
"[A-Za-z]./[Qq]t/qt-.+-opensource-src"
)
SET(CTEST_CUSTOM_WARNING_EXCEPTION
${CTEST_CUSTOM_WARNING_EXCEPTION}
# itk suppressions
"Utilities.gdcm"
"Utilities.vxl"
# vtk suppressions
"vtkfreetype"
"Utilities.vtktiff"
"VTK.*IO.vtkMySQLQuery.cxx"
"VTK.*Utilities.vtkexodus2"
"VTK.*Utilities.vtklibproj"
"VTK.*Utilities.vtksqlite"
"VTK.*warn_unused_result"
"VTK.*Filtering.*cxx"
"VTK.*IO.*cxx"
"VTK.*Infovis.*cxx"
# qt suppressions from vtk...
# Some VTK dashboards include building bits of Qt which produce lots of
# the following warnings when built with the MS compilers. Qt guys should
# fix their code. Until they do, keep the Qt chatter off the VTK dashboard
# results:
"include.[Qq]t([Cc]ore|[Gg]ui).*warning C4127: conditional expression is constant"
"[Qq]t.*h.*warning.*declaration of .* shadows a member of .this"
"[Qq]t.*h.*warning.*(copy constructor|assignment operator) could not be generated"
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment