Skip to content
Snippets Groups Projects
Commit c7cb7e2c authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cdash: add an option to suppress third-party warnings

They'll still show up locally, but CDash won't show them.
parent 54fabd2a
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,13 @@ list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
"[Qq]t.*warning C4714"
"[Qq]t.*note: see declaration of")
set(cdash_show_third_party_warnings "@VTK_ENABLE_CDASH_THIRD_PARTY_WARNINGS@")
if (NOT cdash_show_third_party_warnings)
list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
# Suppress ThirdParty source code from displaying warnings.
"[Tt]hird[Pp]arty")
endif ()
list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
"vtk[^\\.]+(Java|Python).cxx"
".*Testing.Cxx.*cxx"
......
......@@ -293,6 +293,11 @@ set(vtk_cmake_build_dir
"${CMAKE_CURRENT_BINARY_DIR}/${vtk_cmake_destination}")
include(vtkInstallCMakePackage)
cmake_dependent_option(VTK_ENABLE_CDASH_THIRD_PARTY_WARNINGS
"Suppress warnings from third-party libraries from showing on CDash" OFF
"VTK_BUILD_TESTING" OFF)
mark_as_advanced(VTK_ENABLE_CDASH_THIRD_PARTY_WARNINGS)
configure_file(
"${vtk_cmake_dir}/CTestCustom.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.cmake"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment