summaryrefslogtreecommitdiff
path: root/Tests/ExternalProject
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-10-21 15:16:41 -0400
committerBrad King <brad.king@kitware.com>2014-10-22 10:52:28 -0400
commitad984b60edaeac622fd87532899e52a3ff220a70 (patch)
treea901c0482a2aa24a4ec44304cdcfb0d5d2a1deb3 /Tests/ExternalProject
parent54ff77dc621a91302abad0ab38d9bd26de8914b9 (diff)
downloadcmake-ad984b60edaeac622fd87532899e52a3ff220a70.tar.gz
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/ExternalProject')
-rw-r--r--Tests/ExternalProject/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/ExternalProject/CMakeLists.txt b/Tests/ExternalProject/CMakeLists.txt
index 2f74121ff2..d2fa86a0e3 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")