summaryrefslogtreecommitdiffstats
path: root/Modules/FindGit.cmake
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-01-06 15:09:48 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-01-06 15:09:48 (GMT)
commited2b314e4fac544eb4d657fd3ad82db95655b51a (patch)
tree7649868d47f47962c0b477b2c728b073ac6bc302 /Modules/FindGit.cmake
parent99ddf6a12d54854ae4f27eecd592fef5cb22640f (diff)
downloadCMake-ed2b314e4fac544eb4d657fd3ad82db95655b51a.zip
CMake-ed2b314e4fac544eb4d657fd3ad82db95655b51a.tar.gz
CMake-ed2b314e4fac544eb4d657fd3ad82db95655b51a.tar.bz2
Add PATH_SUFFIXES for finding git.
This commit makes it automatic to find msysGit installed in its default locations on Windows.
Diffstat (limited to 'Modules/FindGit.cmake')
-rw-r--r--Modules/FindGit.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindGit.cmake b/Modules/FindGit.cmake
index 8188715..9dad99c 100644
--- a/Modules/FindGit.cmake
+++ b/Modules/FindGit.cmake
@@ -35,6 +35,7 @@ endif()
find_program(GIT_EXECUTABLE
NAMES ${git_names}
+ PATH_SUFFIXES Git/cmd Git/bin
DOC "git command line client"
)
mark_as_advanced(GIT_EXECUTABLE)