On this page
FindGit
The module defines the following variables:
GIT_EXECUTABLE- 
    
Path to Git command-line client.
 Git_FOUND, GIT_FOUND- 
    
True if the Git command-line client was found.
 GIT_VERSION_STRING- 
    
The version of Git found.
 
New in version 3.14: The module defines the following IMPORTED targets (when CMAKE_ROLE is PROJECT):
Git::Git- 
    
Executable of the Git command-line client.
 
Example usage:
find_package(Git)
if(Git_FOUND)
  message("Git found: ${GIT_EXECUTABLE}")
endif()
  © 2000–2022 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
 https://cmake.org/cmake/help/v3.23/module/FindGit.html