Warning, /sdk/kommit/Findgit2.cmake is written in an unsupported language. File is not indexed.

0001 # Find git2 Library
0002 #
0003 #  GIT2_INCLUDE_DIRS - where to find git2.h, etc.
0004 #  GIT2_LIBRARIES    - List of libraries when using libgit2.
0005 #  GIT2_FOUND        - True if libgit2 is found.
0006 
0007 # GIT2_INCLUDE_PATH
0008 find_path(GIT2_INCLUDE_PATH NAMES git2.h)
0009 # GIT2_LIBRARY
0010 find_library(GIT2_LIBRARY NAMES git2)
0011 
0012 # handle the QUIETLY and REQUIRED arguments and set GIT2_FOUND to TRUE if
0013 # all listed variables are TRUE
0014 include(FindPackageHandleStandardArgs)
0015 find_package_handle_standard_args(libgit2 REQUIRED_VARS GIT2_LIBRARY GIT2_INCLUDE_PATH)
0016 
0017 
0018 if (GIT2_FOUND)
0019   set(GIT2_INCLUDE_DIR  ${GIT2_INCLUDE_PATH})
0020   set(GIT2_INCLUDE_DIRS ${GIT2_INCLUDE_PATH})
0021   set(GIT2_LIBRARIES    ${GIT2_LIBRARY})
0022 endif()
0023 
0024 mark_as_advanced(
0025   GIT2_INCLUDE_PATH
0026   GIT2_LIBRARY
0027 )