From 6662f2864fe58bec01a9f4480d39c8bb710c564b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 16 Apr 2015 07:24:25 -0700 Subject: cmake: fix bug when using system libgit2 Simple omission in commit 7596db28b5ad ("cmake: allow looking for optional libraries"). Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e8d4a22c1..93b0bdf42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,7 @@ pkg_config_library(LIBUSB libusb-1.0 QUIET) # more libraries with special handling in case we build them ourselves if(NOT ${PREFER_GIT_FROMSOURCE}) - pkg_config_library(LIBGIT2 libgit2) + pkg_config_library(LIBGIT2 libgit2 REQUIRED) ELSE() FIND_PACKAGE(LIBGIT2 REQUIRED) INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDE_DIR}) -- cgit v1.2.3-70-g09d2