mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 14:20:06 -06:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user