diff options
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index a89d8a9..a479d16 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -2567,12 +2567,11 @@ if(BUILD_TESTING) # Test CTest Update with CVS find_program(CVS_EXECUTABLE NAMES cvs) - set(CVS_FOUND ${CVS_EXECUTABLE}) - set(CTEST_TEST_UPDATE_CVS ${CVS_FOUND}) - if(CTEST_TEST_UPDATE_CVS AND NOT UNIX) - if("${CVS_EXECUTABLE}" MATCHES "cygwin") - message(STATUS "No CTest.UpdateCVS test with cygwin cvs.exe outside cygwin!") - set(CTEST_TEST_UPDATE_CVS 0) + mark_as_advanced(CVS_EXECUTABLE) + set(CTEST_TEST_UPDATE_CVS 0) + if(CVS_EXECUTABLE) + if(NOT "${CVS_EXECUTABLE}" MATCHES "cygwin" OR UNIX) + set(CTEST_TEST_UPDATE_CVS 1) endif() endif() if(CTEST_TEST_UPDATE_CVS) |