### Navigation

- index
- next |
- previous |
- CMake »
- 3.2.0 Documentation »
- cmake-modules(7) »

# FindGit

The module defines the following variables:

    GIT_EXECUTABLE - path to git command line client
    GIT_FOUND - true if the command line client was found
    GIT_VERSION_STRING - the version of git found (since CMake 2.8.8)

Example usage:

    find_package(Git)
    if(GIT_FOUND)
      message("git found: ${GIT_EXECUTABLE}")
    endif()

### Navigation

- index
- next |
- previous |
- CMake »
- 3.2.0 Documentation »
- cmake-modules(7) »