diff options
-rw-r--r-- | Tests/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index deffd9f..74a59a2 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -857,7 +857,12 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel MARK_AS_ADVANCED(CTEST_TEST_UPDATE_CVS) ENDIF(UNIX) IF(CTEST_TEST_UPDATE_CVS) - FIND_PACKAGE(CVS QUIET) + IF(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) + FIND_PACKAGE(CVS QUIET) + ELSE(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) + FIND_PROGRAM(CVS_EXECUTABLE NAMES cvs) + SET(CVS_FOUND ${CVS_EXECUTABLE}) + ENDIF(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) ENDIF(CTEST_TEST_UPDATE_CVS) IF(CTEST_TEST_UPDATE_CVS AND CVS_FOUND) SET(CTestUpdateCVS_DIR "CTest UpdateCVS") |