mirror of
https://github.com/reactos/CMake.git
synced 2025-01-27 06:42:32 +00: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:
parent
94c6040b73
commit
caeb6d1dfb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user