summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2014-12-18 18:34:32 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2014-12-18 18:34:32 +0100
commit9a86d030aec4d3a54d76f640c7aec31f4f35d166 (patch)
treea2b19cee1cae8723374086bab96a7a89bc85495f /cmake
parent2da30b5dcc6fd5ae4a94edd257dbbb51814e96f7 (diff)
downloadsink-9a86d030aec4d3a54d76f640c7aec31f4f35d166.tar.gz
sink-9a86d030aec4d3a54d76f640c7aec31f4f35d166.zip
Instead of a minimum required version, just check wether we have the required functions.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindLibgit2.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/modules/FindLibgit2.cmake b/cmake/modules/FindLibgit2.cmake
index 410eab0..f33db4a 100644
--- a/cmake/modules/FindLibgit2.cmake
+++ b/cmake/modules/FindLibgit2.cmake
@@ -26,8 +26,11 @@ FIND_LIBRARY(LIBGIT2_LIBRARIES NAMES git2
26 ${PC_LIBGIT2_LIBRARY_DIRS} 26 ${PC_LIBGIT2_LIBRARY_DIRS}
27 ) 27 )
28 28
29#Should be replaced by a version check
30include(CheckFunctionExists)
31CHECK_FUNCTION_EXISTS(git_buf_free HAVE_BUF_FREE)
29 32
30INCLUDE(FindPackageHandleStandardArgs) 33INCLUDE(FindPackageHandleStandardArgs)
31FIND_PACKAGE_HANDLE_STANDARD_ARGS(libgit2 DEFAULT_MSG LIBGIT2_LIBRARIES LIBGIT2_INCLUDE_DIR) 34FIND_PACKAGE_HANDLE_STANDARD_ARGS(libgit2 DEFAULT_MSG LIBGIT2_LIBRARIES LIBGIT2_INCLUDE_DIR HAVE_BUF_FREE)
32 35
33MARK_AS_ADVANCED(LIBGIT2_INCLUDE_DIR LIBGIT2_LIBRARIES) 36MARK_AS_ADVANCED(LIBGIT2_INCLUDE_DIR LIBGIT2_LIBRARIES)