From e8b076d7b8c64510f9feca6d83946cbe782bfc52 Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 10 Jun 2005 16:11:43 +0000 Subject: [PATCH] ENH: Adding support for removing warnings from the dashboard. --- CMake/CTestCustom.ctest.in | 6 ++++++ CMakeLists.txt | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 CMake/CTestCustom.ctest.in diff --git a/CMake/CTestCustom.ctest.in b/CMake/CTestCustom.ctest.in new file mode 100644 index 00000000..a62a734e --- /dev/null +++ b/CMake/CTestCustom.ctest.in @@ -0,0 +1,6 @@ +SET(CTEST_CUSTOM_WARNING_EXCEPTION + ${CTEST_CUSTOM_WARNING_EXCEPTION} + "comparison is always false due to limited range of data type" + ) + + diff --git a/CMakeLists.txt b/CMakeLists.txt index 86f8d6d2..7fb8b8d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -200,6 +200,8 @@ INSTALL_FILES(/include .h gdcmConfigure.h) OPTION(BUILD_TESTING "Build testing." ON) IF(BUILD_TESTING) + CONFIGURE_FILE(${GDCM_SOURCE_DIR}/CMake/CTestCustom.ctest.in + ${GDCM_BINARY_DIR}/CMake/CTestCustom.ctest @ONLY) ENABLE_TESTING() INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake) MARK_AS_ADVANCED(DART_ROOT) -- 2.45.0