FindGit: Add new 'GitHub for Windows' user directory
GitHub for Windows now installs in $ENV{LOCALAPPDATA}/Github/PortableGit*/cmd instead of $ENV{LOCALAPPDATA}/Github/PortableGit*/bin Search the new location first but keep the old one in case people have older versions installed.
This commit is contained in:
parent
52dddefcbb
commit
19e8752b86
|
@ -45,8 +45,10 @@ if(WIN32)
|
||||||
if(NOT CMAKE_GENERATOR MATCHES "MSYS")
|
if(NOT CMAKE_GENERATOR MATCHES "MSYS")
|
||||||
set(git_names git.cmd git eg.cmd eg)
|
set(git_names git.cmd git eg.cmd eg)
|
||||||
# GitHub search path for Windows
|
# GitHub search path for Windows
|
||||||
set(github_path "$ENV{LOCALAPPDATA}/Github/PortableGit*/bin")
|
file(GLOB github_path
|
||||||
file(GLOB github_path "${github_path}")
|
"$ENV{LOCALAPPDATA}/Github/PortableGit*/cmd"
|
||||||
|
"$ENV{LOCALAPPDATA}/Github/PortableGit*/bin"
|
||||||
|
)
|
||||||
# SourceTree search path for Windows
|
# SourceTree search path for Windows
|
||||||
set(_git_sourcetree_path "$ENV{LOCALAPPDATA}/Atlassian/SourceTree/git_local/bin")
|
set(_git_sourcetree_path "$ENV{LOCALAPPDATA}/Atlassian/SourceTree/git_local/bin")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue