Skip to content

Commit 4d8f722

Browse files
committed
Don't use pkg-config to find libgit2
This may be wrong, but turning off pkg-config in FindLibgit2.cmake makes cmake respect library paths given from the command line (with -D)
1 parent aa6fbdb commit 4d8f722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMake/FindLibgit2.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
# use pkg-config to get the directories and then use these values
1111
# in the FIND_PATH() and FIND_LIBRARY() calls
12-
FIND_PACKAGE(PkgConfig)
13-
PKG_SEARCH_MODULE(PC_LIBGIT2 libgit2)
12+
#FIND_PACKAGE(PkgConfig)
13+
#PKG_SEARCH_MODULE(PC_LIBGIT2 libgit2)
1414

1515
SET(LIBGIT2_DEFINITIONS ${PC_LIBGIT2_CFLAGS_OTHER})
1616

0 commit comments

Comments
 (0)