Skip to content
Snippets Groups Projects
Commit e11b0c24 authored by José Simões's avatar José Simões
Browse files

This is required when cross-compiling in WIN32 platform. Because the target...

This is required when cross-compiling in WIN32 platform. Because the target platform gets changed checking for WIN32 is doesn't work anymore. The proper search path for Git in Windows is not set therefore Git can be found.
parent 94c6040b
No related branches found
Tags v3.7.0-rc1
No related merge requests found
Pipeline #
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment