mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03: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