From c84255d7038a4aeec18a18c169fa96f3eb997eec Mon Sep 17 00:00:00 2001 From: David Cole Date: Fri, 24 Jul 2009 18:30:00 -0400 Subject: [PATCH] BUG: One last attempt for today to get the new CheckSourceTree test running on dashboards driven by CMake 2.4... Good night now. --- Tests/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 9cc38249b..a2cfa20f8 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -43,12 +43,14 @@ IF(BUILD_TESTING) if(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) find_package(CVS QUIET) - - if(CVS_EXECUTABLE) - set(do_cvs_tests 1) - endif(CVS_EXECUTABLE) + else(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) + find_program(CVS_EXECUTABLE NAMES cvs) endif(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) + if(CVS_EXECUTABLE) + set(do_cvs_tests 1) + endif(CVS_EXECUTABLE) + if(do_cvs_tests AND NOT UNIX) if("${CVS_EXECUTABLE}" MATCHES "cygwin") set(do_cvs_tests 0)