build/msvc: Add Git as a requirement for Windows patches

This commit is contained in:
b-r-o-c-k
2018-03-06 20:38:10 -06:00
parent c29a82c45f
commit 8ba8d7244f
3 changed files with 11 additions and 4 deletions

View File

@@ -50,6 +50,13 @@ endif()
option(USE_EXISTING_SRC_DIR "Skip download of deps sources in case of existing source directory." OFF)
if(WIN32)
find_package(Git)
if(NOT Git_FOUND)
message(FATAL_ERROR "Git is required to apply patches for Windows.")
endif()
endif()
if(UNIX)
find_program(MAKE_PRG NAMES gmake make)
if(MAKE_PRG)