summaryrefslogtreecommitdiffstats
path: root/Modules/CTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-17 15:10:32 (GMT)
committerBrad King <brad.king@kitware.com>2008-03-17 15:10:32 (GMT)
commit98e06794dd2b4554e1fc82314edc9a5c7a232d7d (patch)
tree3504d62ee37bbc667c09e87f71c636dd6387f950 /Modules/CTest.cmake
parent9f54e1f043dc522f14ce53c7356f4de1ae316c63 (diff)
downloadCMake-98e06794dd2b4554e1fc82314edc9a5c7a232d7d.zip
CMake-98e06794dd2b4554e1fc82314edc9a5c7a232d7d.tar.gz
CMake-98e06794dd2b4554e1fc82314edc9a5c7a232d7d.tar.bz2
ENH: Avoid printing message about unknown repository type repeatedly in CTest.
Diffstat (limited to 'Modules/CTest.cmake')
-rw-r--r--Modules/CTest.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake
index 7322dbf..28d9b58 100644
--- a/Modules/CTest.cmake
+++ b/Modules/CTest.cmake
@@ -104,7 +104,10 @@ IF(BUILD_TESTING)
ENDIF(NOT UPDATE_TYPE)
IF(NOT UPDATE_TYPE)
- MESSAGE(STATUS "Cannot determine repository type. Please set UPDATE_TYPE to 'cvs' or 'svn'. CTest update will not work.")
+ IF(NOT __CTEST_UPDATE_TYPE_COMPLAINED)
+ SET(__CTEST_UPDATE_TYPE_COMPLAINED 1 CACHE INTERNAL "Already complained about update type.")
+ MESSAGE(STATUS "CTest cannot determine repository type. Please set UPDATE_TYPE to 'cvs' or 'svn'. CTest update will not work.")
+ ENDIF(NOT __CTEST_UPDATE_TYPE_COMPLAINED)
ENDIF(NOT UPDATE_TYPE)
IF(UPDATE_TYPE MATCHES "[Cc][Vv][Ss]")