Merge topic 'FindGit-fix-cross-compile'

caeb6d1d FindGit: Fix check for Windows host

diff --git a/Modules/FindGit.cmake b/Modules/FindGit.cmake
index 769c6c3..b830c08 100644
--- a/Modules/FindGit.cmake
+++ b/Modules/FindGit.cmake
@@ -30,7 +30,7 @@
 # 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