From 7d907a9a6132521990c61175fd1e5fece9b76490 Mon Sep 17 00:00:00 2001
From: Ian Scott <ian.m.scott@stud.man.ac.uk>
Date: Fri, 11 Oct 2002 11:22:16 -0400
Subject: [PATCH] Add option to control number of errors sent to dashbaord

---
 Modules/Dart.cmake | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake
index c18ece682b..e168ecad86 100644
--- a/Modules/Dart.cmake
+++ b/Modules/Dart.cmake
@@ -28,6 +28,8 @@ IF(BUILD_TESTING)
   # to be defined by cmake 
   SET(MAKEPROGRAM ${CMAKE_MAKE_PROGRAM})
   OPTION(VERBOSE_BUILD "Show the actual output of the build, or if off show a . for each 1024 bytes." "OFF")
+  OPTION(BUILD_ERROR_REPORT_LIMIT "Limit of reported errors, -1 reports all." -1 )  
+  OPTION(BUILD_WARNING_REPORT_LIMIT "Limit of reported warnings, -1 reports all." -1 )  
 
   FIND_PROGRAM(CVSCOMMAND cvs )
   SET(CVS_UPDATE_OPTIONS "-d -A -P" CACHE STRING "Options passed to the cvs update command.")
@@ -58,6 +60,8 @@ IF(BUILD_TESTING)
 
   MARK_AS_ADVANCED(
     VERBOSE_BUILD
+    BUILD_WARNING_REPORT_LIMIT 
+    BUILD_ERROR_REPORT_LIMIT     
     SITE 
     BUILDNAME 
     MAKECOMMAND 
-- 
GitLab