SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS   99)
SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 999)

SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
 ${CTEST_CUSTOM_COVERAGE_EXCLUDE}

 # Exclude try_compile sources from coverage results:
 "/CMakeFiles/CMakeTmp/"

 # Exclude files from the Testing directories
 ".*/Testing/.*"

 # Exclude files from the Utilities directories
 ".*/Utilities/.*"

 # exclude certain wrapping files
 "/Wrapping/SimpleITKLuaMain.cxx"
 "/Wrapping/.*_wrap.cxx"
 )

SET(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}

  # Ignore warning for files with no symbols
  "warning LNK4221.*not define any previously undefined public symbols"
  "warning LNK4221.*no public symbols found"
  ".*ranlib:.*file:.*has no symbols"
  "libtool:.*file:.*has no symbols"

  # Ignore warning building SWIG
  "Swig-prefix/src/Swig"

  # Ignore warning building PCRE
  "PCRE-prefix/src/PCRE"

  # Ignore apple warning
  "ld.*warning.*duplicate dylib.*"

  # Ignore warning from the SWIG wrapped file ( not much we can do about those )
  ".*_wrap.cxx"

  # Ignore warning in lua about the use of `tmpnam' is dangerous
  "loslib"
)


SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS   99)
SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 999)

SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
 ${CTEST_CUSTOM_COVERAGE_EXCLUDE}

 # Exclude try_compile sources from coverage results:
 "/CMakeFiles/CMakeTmp/"

 # Exclude files from the Testing directories
 ".*/Testing/.*"

 # Exclude files from the Utilities directories
 ".*/Utilities/.*"

 # exclude certain wrapping files
 "/Wrapping/SimpleITKLuaMain.cxx"
 "/Wrapping/.*_wrap.cxx"
 )

SET(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}

  # Ignore warning for files with no symbols
  "warning LNK4221.*not define any previously undefined public symbols"
  "warning LNK4221.*no public symbols found"
  ".*ranlib:.*file:.*has no symbols"
  "libtool:.*file:.*has no symbols"

  # Ignore warning building SWIG
  "Swig-prefix/src/Swig"

  # Ignore warning building PCRE
  "PCRE-prefix/src/PCRE"

  # Ignore apple warning
  "ld.*warning.*duplicate dylib.*"

  # Ignore warning from the SWIG wrapped file ( not much we can do about those )
  ".*_wrap.cxx"

  # Ignore warning in lua about the use of `tmpnam' is dangerous
  "loslib"

  # Ignore CSharp invalid version warning for dev
  "warning CS1607.*The version number.*dev.*is invalid"
)


Add suppression for CSharp dev version warning.
Add suppression for CSharp dev version warning.

Change-Id: Iedc988d413749db06c244c24f96ff2914f006d2a
