summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-16 13:26:23 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-12-16 13:26:23 (GMT)
commit0a9e4e08b5d275fa20190509d6b1448f360461a8 (patch)
treef8282ddfbeca0aa44838b28c7a03f6ffd03073dc
parentb5c7835e27dc4bb009d508a5b280ebd01b2fcd71 (diff)
parentcaeb6d1dfb7ec9ab471d24e71244d7899f044c27 (diff)
downloadCMake-0a9e4e08b5d275fa20190509d6b1448f360461a8.zip
CMake-0a9e4e08b5d275fa20190509d6b1448f360461a8.tar.gz
CMake-0a9e4e08b5d275fa20190509d6b1448f360461a8.tar.bz2
Merge topic 'FindGit-fix-cross-compile'
caeb6d1d FindGit: Fix check for Windows host
-rw-r--r--Modules/FindGit.cmake2
1 files changed, 1 insertions, 1 deletions
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 @@ 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