From caeb6d1dfb7ec9ab471d24e71244d7899f044c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Thu, 15 Dec 2016 09:31:08 -0500 Subject: [PATCH] FindGit: Fix check for Windows host When cross-compiling to or from a Windows platform we should still find a Git for the host environment. --- Modules/FindGit.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindGit.cmake b/Modules/FindGit.cmake index 769c6c3c5a..b830c080df 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