Explorar el Código

Merge topic 'FindGit-fix-cross-compile'

caeb6d1d FindGit: Fix check for Windows host
Brad King hace 9 años
padre
commit
0a9e4e08b5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Modules/FindGit.cmake

+ 1 - 1
Modules/FindGit.cmake

@@ -30,7 +30,7 @@ set(git_names git eg)
 # Prefer .cmd variants on Windows unless running in a Makefile
 # in the MSYS shell.
 #
-if(WIN32)
+if(CMAKE_HOST_WIN32)
   if(NOT CMAKE_GENERATOR MATCHES "MSYS")
     set(git_names git.cmd git eg.cmd eg)
     # GitHub search path for Windows