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.
This commit is contained in:
parent
e18f3623e3
commit
c4205773a5
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue