From c4205773a5362e943cf05feecacabe6b773e5427 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 10 Feb 2010 10:43:33 -0500 Subject: [PATCH] Do not warn for unknown CTest UPDATE_TYPE In the CTest module we previously warned if the source directory did not contain known version control directories. The message was: "CTest cannot determine repository type. Please set UPDATE_TYPE to 'cvs' or 'svn'. CTest update will not work." This was confusing when building sources from a tarball. Furthermore, we now support many more version control tools. This feature is now mature enough that the warning causes confusion more than it provides real help. We simply remove it. --- Modules/CTest.cmake | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake index 84a7881af..2d0702e96 100644 --- a/Modules/CTest.cmake +++ b/Modules/CTest.cmake @@ -142,13 +142,6 @@ IF(BUILD_TESTING) ENDIF() ENDIF(NOT UPDATE_TYPE) - IF(NOT UPDATE_TYPE) - 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) - STRING(TOLOWER "${UPDATE_TYPE}" _update_type) IF("${_update_type}" STREQUAL "cvs") SET(UPDATE_COMMAND "${CVSCOMMAND}")