CTestCustom.cmake.in 1.09 KB
Newer Older
1 2 3 4 5 6 7
set( CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 1000 )
set( CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 1000 )

##------------------------------------------------------------------------------
## Ignore warnings in generated code during the build process
set (CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
8
  "moab"
9
  "smtk/SMTKCorePython"
10 11 12 13
  "ClientServer.cxx:[0-9]*:[0-9]*: warning: use of old-style cast"
  "Python/.* warning: declaration of .* shadows a member of 'this' \\[-Wshadow\\]"
  "vtkPythonArgs.h.* warning: use of old-style cast \\[-Wold-style-cast\\]"
  "Done, 0 warnings"
14 15
  # This is to squash an "unused parameter" warning in moab.
  "VALGRIND_MAKE_VEC_UNDEFINED"
16 17 18 19 20 21 22
)

##------------------------------------------------------------------------------
## Regular expression for error exceptions during build process
#set (CTEST_CUSTOM_ERROR_EXCEPTION
#  ${CTEST_CUSTOM_ERROR_EXCEPTION}
#)
23 24 25 26 27 28 29 30 31 32 33 34

cmake_policy(SET CMP0012 NEW)

if(@SMTK_COVERAGE_ENABLED@)
  set(COVERAGE_EXTRA_FLAGS "-l -p")
  set(CTEST_CUSTOM_COVERAGE_EXCLUDE
    "thirdparty"
    "testing"
    "pybind11"
    "qt"
    )
endif()