Skip to content

Commit 3142fdb

Browse files
committed
meta: configure pkg-config .pc correctly
The library name is correctly libgit2 (not git2) or libgit2-experimental depending on configuration.
1 parent 44d3372 commit 3142fdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libgit2/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ if(SONAME)
103103
endif()
104104
endif()
105105

106-
pkg_build_config(NAME "${LIBGIT2_FILENAME}"
106+
pkg_build_config(NAME "lib${LIBGIT2_FILENAME}"
107107
VERSION ${libgit2_VERSION}
108108
DESCRIPTION "The git library, take 2"
109-
LIBS_SELF git2
109+
LIBS_SELF ${LIBGIT2_FILENAME}
110110
PRIVATE_LIBS ${LIBGIT2_PC_LIBS}
111111
REQUIRES ${LIBGIT2_PC_REQUIRES})
112112

0 commit comments

Comments
 (0)