Allow to use git.cmd in addition to git.exe

In respect of #682 and https://cmake.org/Bug/bug_relationship_graph.php?bug_id=9879.
This commit is contained in:
pravic 2017-02-21 08:24:14 +03:00 committed by GitHub
parent 128ba92fee
commit 9aa7c944f2

View File

@ -22,7 +22,7 @@
function(vcpkg_apply_patches)
cmake_parse_arguments(_ap "QUIET" "SOURCE_PATH" "PATCHES" ${ARGN})
find_program(GIT git)
find_program(GIT NAMES git git.cmd)
set(PATCHNUM 0)
foreach(PATCH ${_ap_PATCHES})
message(STATUS "Applying patch ${PATCH}")