diff options
author | Brad King <brad.king@kitware.com> | 2015-01-15 14:54:14 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-01-15 14:54:14 (GMT) |
commit | 80a6c38d98d12f4b5d6411a93e67863f163f0da0 (patch) | |
tree | 4affd64fc14a86ae2e8e24576a01e1d20f8df581 /Modules | |
parent | e7c1836e044689c0a55d9fcacd94d88ef8b9ec19 (diff) | |
parent | ff880ecea13537a45b914fab05ac4a3c26287f2d (diff) | |
download | CMake-80a6c38d98d12f4b5d6411a93e67863f163f0da0.zip CMake-80a6c38d98d12f4b5d6411a93e67863f163f0da0.tar.gz CMake-80a6c38d98d12f4b5d6411a93e67863f163f0da0.tar.bz2 |
Merge topic 'FindGit-local-Github'
ff880ece Help: Add notes for topic 'FindGit-local-Github'
54690624 FindGit: Search in 'GitHub for Windows' user directory
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindGit.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindGit.cmake b/Modules/FindGit.cmake index 570538d..b4f7b4b 100644 --- a/Modules/FindGit.cmake +++ b/Modules/FindGit.cmake @@ -45,11 +45,15 @@ set(git_names git eg) if(WIN32) if(NOT CMAKE_GENERATOR MATCHES "MSYS") set(git_names git.cmd git eg.cmd eg) + # GitHub search path for Windows + set(github_path "$ENV{LOCALAPPDATA}/Github/PortableGit*/bin") + file(GLOB github_path "${github_path}") endif() endif() find_program(GIT_EXECUTABLE NAMES ${git_names} + PATHS ${github_path} PATH_SUFFIXES Git/cmd Git/bin DOC "git command line client" ) |