mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cmake: fix bug when using system libgit2
Simple omission in commit 7596db28b5
("cmake: allow looking for optional
libraries").
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5ecf4650b4
commit
6662f2864f
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ pkg_config_library(LIBUSB libusb-1.0 QUIET)
|
||||||
# more libraries with special handling in case we build them ourselves
|
# more libraries with special handling in case we build them ourselves
|
||||||
|
|
||||||
if(NOT ${PREFER_GIT_FROMSOURCE})
|
if(NOT ${PREFER_GIT_FROMSOURCE})
|
||||||
pkg_config_library(LIBGIT2 libgit2)
|
pkg_config_library(LIBGIT2 libgit2 REQUIRED)
|
||||||
ELSE()
|
ELSE()
|
||||||
FIND_PACKAGE(LIBGIT2 REQUIRED)
|
FIND_PACKAGE(LIBGIT2 REQUIRED)
|
||||||
INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDE_DIR})
|
||||||
|
|
Loading…
Add table
Reference in a new issue