diff options
author | Brad King <brad.king@kitware.com> | 2014-10-21 19:16:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-10-22 14:52:28 (GMT) |
commit | ad984b60edaeac622fd87532899e52a3ff220a70 (patch) | |
tree | a901c0482a2aa24a4ec44304cdcfb0d5d2a1deb3 /Tests | |
parent | 54ff77dc621a91302abad0ab38d9bd26de8914b9 (diff) | |
download | CMake-ad984b60edaeac622fd87532899e52a3ff220a70.zip CMake-ad984b60edaeac622fd87532899e52a3ff220a70.tar.gz CMake-ad984b60edaeac622fd87532899e52a3ff220a70.tar.bz2 |
Tests/ExternalProject: Skip Windows hg tests with cygwin hg
The cygwin hg client is a text file with a '#!/bin/python" line.
This cannot run on Windows.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/ExternalProject/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/ExternalProject/CMakeLists.txt b/Tests/ExternalProject/CMakeLists.txt index 2f74121..d2fa86a 100644 --- a/Tests/ExternalProject/CMakeLists.txt +++ b/Tests/ExternalProject/CMakeLists.txt @@ -372,6 +372,13 @@ if(HG_EXECUTABLE) set(do_hg_tests 1) endif() +if(do_hg_tests AND NOT UNIX) + if("${HG_EXECUTABLE}" MATCHES "cygwin") + message(STATUS "No ExternalProject hg tests with cygwin hg outside cygwin!") + set(do_hg_tests 0) + endif() +endif() + if(do_hg_tests) set(local_hg_repo "../../LocalRepositories/HG") |