From 546906243d21727ac6c1bab0210fc028ff80c3c0 Mon Sep 17 00:00:00 2001 From: Frank Park Date: Mon, 12 Jan 2015 21:23:37 -0500 Subject: FindGit: Search in 'GitHub for Windows' user directory --- Modules/FindGit.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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" ) -- cgit v0.12 From ff880ecea13537a45b914fab05ac4a3c26287f2d Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 14 Jan 2015 15:08:12 -0500 Subject: Help: Add notes for topic 'FindGit-local-Github' --- Help/release/dev/FindGit-local-Github.rst | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Help/release/dev/FindGit-local-Github.rst diff --git a/Help/release/dev/FindGit-local-Github.rst b/Help/release/dev/FindGit-local-Github.rst new file mode 100644 index 0000000..3523e86 --- /dev/null +++ b/Help/release/dev/FindGit-local-Github.rst @@ -0,0 +1,5 @@ +FindGit-local-Github +-------------------- + +* The :module:`FindGit` module learned to find the ``git`` command-line tool + that comes with GitHub for Windows installed in user home directories. -- cgit v0.12