diff options
-rw-r--r-- | Tests/CMakeLists.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index e461170..9cc3824 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -39,18 +39,21 @@ IF(BUILD_TESTING) # Should tests that use CVS be run? # - find_package(CVS) set(do_cvs_tests 0) - if(CVS_EXECUTABLE) - set(do_cvs_tests 1) - endif() + if(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) + find_package(CVS QUIET) + + if(CVS_EXECUTABLE) + set(do_cvs_tests 1) + endif(CVS_EXECUTABLE) + endif(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) if(do_cvs_tests AND NOT UNIX) if("${CVS_EXECUTABLE}" MATCHES "cygwin") set(do_cvs_tests 0) - endif() - endif() + endif("${CVS_EXECUTABLE}" MATCHES "cygwin") + endif(do_cvs_tests AND NOT UNIX) # Should CPack tests be run? By default, yes, but... # |