Skip to content
Snippets Groups Projects
Commit 907ad640 authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Find chocolatey installed cmder git as well.

parent d8f707ec
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,14 @@ find_package(cppcheck QUIET)
find_package(PythonInterp QUIET)
# Check for cmder git installed via chocolatey
find_program(GIT_EXECUTABLE
NAMES git
PATHS C:/tools/cmder/vendor/git-for-windows
PATH_SUFFIXES cmd bin
DOC "Git command line client"
)
find_package(Git REQUIRED)
string(REPLACE "mingw64/" "" GIT_EXECUTABLE ${GIT_EXECUTABLE}) # Windows git submodule fix
set(GIT_TOOL_PATH ${GIT_EXECUTABLE} CACHE FILEPATH "The git command line interface" FORCE)
......
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