diff options
author | Brad King <brad.king@kitware.com> | 2010-02-10 15:43:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-02-10 15:43:33 (GMT) |
commit | c4205773a5362e943cf05feecacabe6b773e5427 (patch) | |
tree | effd7d94456cba7a3d5bd2448c719a793e991137 | |
parent | e18f3623e3fc48a792c3ccf5074f6991915ae69b (diff) | |
download | CMake-c4205773a5362e943cf05feecacabe6b773e5427.zip CMake-c4205773a5362e943cf05feecacabe6b773e5427.tar.gz CMake-c4205773a5362e943cf05feecacabe6b773e5427.tar.bz2 |
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.
-rw-r--r-- | Modules/CTest.cmake | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake index 84a7881..2d0702e 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}") |