DKSDK_EXECUTABLE_GIT¶
The full path to the system git executable, if it exists.
The system git is typically the one that has been configured
with authentication to private repositories and custom proxies.
A search is required before using this CMake variable. The search is automatic as long as you have done the following at least once:
include(DkSDKDetectExecutables)
On Windows in particular, which can have multiple git executables,
the search must be careful to:
Find the system
gitrather than (for example) agitthat has not been configured by the user with credentials.Not use a Git Bash, Cygwin or MSYS2
gitfrom a directory that also contains binaries likebashthat conflict with DkSDK's MSYS2. Often OCaml tools need the systemgitin the PATH, so any extraneous shells likebashwill cause problems.
The search rules are as follows:
On Windows: Look for
git-gui.exein the PATH, which is unique to the\\cmdsubdirectory. If it exists we add thegit.exefrom that directory.Otherwise look for
git(orgit.exeon Windows) in the PATH.
