Parcourir la source

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.
Brad King il y a 11 ans
Parent
commit
ad984b60ed
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      Tests/ExternalProject/CMakeLists.txt

+ 7 - 0
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")