Browse Source

BUG: One last attempt for today to get the new CheckSourceTree test running on dashboards driven by CMake 2.4... Good night now.

David Cole 16 years ago
parent
commit
c84255d703
1 changed files with 6 additions and 4 deletions
  1. 6 4
      Tests/CMakeLists.txt

+ 6 - 4
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)