diff options
author | Brad King <brad.king@kitware.com> | 2022-02-04 18:00:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-02-07 16:53:28 (GMT) |
commit | a70864e30072167c8aae65910a653f9d2f32fb16 (patch) | |
tree | e536375b48e94c77de09f3cf302dea251ff6ba07 /Tests/CMakeLists.txt | |
parent | 1972a75536de657b7c0a7f69c9cddbda5930129e (diff) | |
download | CMake-a70864e30072167c8aae65910a653f9d2f32fb16.zip CMake-a70864e30072167c8aae65910a653f9d2f32fb16.tar.gz CMake-a70864e30072167c8aae65910a653f9d2f32fb16.tar.bz2 |
Tests: Make condition for CTest.UpdateCVS match pattern of other tools
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) |