Warning, /utilities/basket/cmake/Modules/FindLibgit2.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find the libgit2 library 0002 # Once done this will define 0003 # 0004 # LIBGIT2_FOUND - System has libgit2 0005 # LIBGIT2_INCLUDE_DIR - The libgit2 include directory 0006 # LIBGIT2_LIBRARIES - The libraries needed to use libgit2 0007 # LIBGIT2_DEFINITIONS - Compiler switches required for using libgit2 0008 0009 0010 # use pkg-config to get the directories and then use these values 0011 # in the FIND_PATH() and FIND_LIBRARY() calls 0012 FIND_PACKAGE(PkgConfig) 0013 PKG_SEARCH_MODULE(PC_LIBGIT2 libgit2) 0014 0015 SET(LIBGIT2_DEFINITIONS ${PC_LIBGIT2_CFLAGS_OTHER}) 0016 0017 FIND_PATH(LIBGIT2_INCLUDE_DIR NAMES git2.h 0018 HINTS 0019 ${PC_LIBGIT2_INCLUDEDIR} 0020 ${PC_LIBGIT2_INCLUDE_DIRS} 0021 ) 0022 0023 FIND_LIBRARY(LIBGIT2_LIBRARIES NAMES git2 0024 HINTS 0025 ${PC_LIBGIT2_LIBDIR} 0026 ${PC_LIBGIT2_LIBRARY_DIRS} 0027 ) 0028 0029 0030 INCLUDE(FindPackageHandleStandardArgs) 0031 FIND_PACKAGE_HANDLE_STANDARD_ARGS(libgit2 DEFAULT_MSG LIBGIT2_LIBRARIES LIBGIT2_INCLUDE_DIR) 0032 0033 MARK_AS_ADVANCED(LIBGIT2_INCLUDE_DIR LIBGIT2_LIBRARIES)