Commit 66119067 authored by jcfr's avatar jcfr
Browse files

COMP: Superbuild - Updated CTEST_CUSTOM_WARNING_EXCEPTION and removed...

COMP: Superbuild - Updated CTEST_CUSTOM_WARNING_EXCEPTION and removed auto-generated list of exception

Exception shouldn't be auto-generated. These ones should be added case
by case and widely documented.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@13567 3bd1e089-480b-0410-8dfb-8563597acbee
parent b3fd8495
......@@ -53,6 +53,7 @@ SET(CTEST_CUSTOM_WARNING_EXCEPTION
"VTK.*Utilities.vtkexodus2"
"VTK.*Utilities.vtklibproj"
"VTK.*Utilities.vtksqlite"
"VTK.*Utilities.VPIC.*cxx"
"VTK.*warn_unused_result"
"VTK.*Filtering.*cxx"
"VTK.*IO.*cxx"
......@@ -72,6 +73,7 @@ SET(CTEST_CUSTOM_WARNING_EXCEPTION
# Libs/tclap
"tclap.include.tclap.*Arg.h.*warning C4512.*"
# Python suppressions
# About redefinition of symbols
......
......@@ -267,23 +267,23 @@ endif()
# List of external projects
#------------------------------------------------------------------------------
set(external_project_list tk incrTcl iwidgets blt python clapack numpy scipy vtk CTK KWWidgets Insight BatchMake OpenIGTLink teem cmcurl slicer)
set(external_project_list tk tcl incrTcl iwidgets blt python clapack numpy scipy vtk CTK KWWidgets Insight BatchMake OpenIGTLink teem cmcurl slicer)
#------------------------------------------------------------------------------
# Configure the CTest custom file - Used to suppress external project configure/build warnings
#------------------------------------------------------------------------------
# Project that should report warning
set(report_warning_projects slicer CTK)
#set(report_warning_projects slicer CTK)
# Generate custom warning exception
set(external_project_to_exclude ${external_project_list})
list(REMOVE_ITEM external_project_to_exclude ${report_warning_projects})
set(AUTOGENERATED_CUSTOM_WARNING_EXCEPTION "\n \# The following exception have been auto-generated")
foreach(ep ${external_project_to_exclude})
set(AUTOGENERATED_CUSTOM_WARNING_EXCEPTION
"${AUTOGENERATED_CUSTOM_WARNING_EXCEPTION}\n \"${ep}.\"")
endforeach()
#set(external_project_to_exclude ${external_project_list})
#list(REMOVE_ITEM external_project_to_exclude ${report_warning_projects})
#set(AUTOGENERATED_CUSTOM_WARNING_EXCEPTION "\n \# The following exception have been auto-generated")
#foreach(ep ${external_project_to_exclude})
# set(AUTOGENERATED_CUSTOM_WARNING_EXCEPTION
# "${AUTOGENERATED_CUSTOM_WARNING_EXCEPTION}\n \"${ep}.\"")
#endforeach()
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/../SuperBuild/CTestCustom.cmake.in
......
SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 10000)
SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 10000)
SET(CTEST_CUSTOM_ERROR_MATCH
${CTEST_CUSTOM_ERROR_MATCH}
"CMake Error[ :]"
)
SET(CTEST_CUSTOM_WARNING_MATCH
${CTEST_CUSTOM_WARNING_MATCH}
"CMake Warning[ :]"
)
SET(CTEST_CUSTOM_WARNING_EXCEPTION
${CTEST_CUSTOM_WARNING_EXCEPTION}
#"y.tab.c."
......@@ -40,9 +50,57 @@ SET(CTEST_CUSTOM_WARNING_EXCEPTION
"Modules._multiprocessing.multiprocessing.*warning C4101"
# Make
"warning: jobserver unavailable: using -j1. Add `+' to parent make rule."
".*warning: jobserver unavailable.*"
# Suppressing warnings about duplicate libraries in Darwin
# At some point this may be addressed by CMake feature request:
# http://public.kitware.com/Bug/view.php?id=10179
"ld: warning: duplicate dylib.*"
# Suppressing warnings about GL_GLEXT_LEGACY, the link reported below
# report a similar problem with GL_GLEXT_PROTOTYPE.
# http://lists.apple.com/archives/mac-opengl/2009/Dec/msg00081.html
# That problem could be solved installing a newer version of X11 SDK
# See http://xquartz.macosforge.org/trac/changeset/343
".*warning: "GL_GLEXT_LEGACY" redefined"
# ITK suppressions
"Utilities.gdcm"
"Utilities.vxl"
"Insight.Code.Common"
# VTK suppressions
"vtkfreetype"
"Utilities.vtktiff"
"VTK.*IO.vtkMySQLQuery.cxx"
"VTK.*Utilities.vtkexodus2"
"VTK.*Utilities.vtklibproj"
"VTK.*Utilities.vtksqlite"
"VTK.*Utilities.VPIC.*cxx"
"VTK.*warn_unused_result"
"VTK.*Filtering.*cxx"
"VTK.*IO.*cxx"
"VTK.*Infovis.*cxx"
# Libs/OpenIGTLink
"(OpenIGTLink|openigtlink).[Ss]ource.igtl*"
# Libs/tclap
"tclap.include.tclap.*Arg.h.*warning C4512.*"
# Python suppressions
# About redefinition of symbols
".*pyconfig.h.*warning:.*redefined.*"
"features.h.*"
# curl suppressions
"cmcurl.*warning.*conditional expression is constant"
# Visual studio spurious warnings...
"The following environment variables were not found"
@AUTOGENERATED_CUSTOM_WARNING_EXCEPTION@
# The autogenerated warning should be removed
#@AUTOGENERATED_CUSTOM_WARNING_EXCEPTION@
)
SET(CTEST_CUSTOM_ERROR_EXCEPTION
......@@ -50,4 +108,5 @@ SET(CTEST_CUSTOM_ERROR_EXCEPTION
# Numpy errors
"NUMPY.*Warning.*"
".*configtest.*"
"collect2: ld returned 1 exit status"
)
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