summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 9cc3824..a2cfa20 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)