From 3142fdba3258cce583e6590ca135e3b665c81c64 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 27 Feb 2023 22:08:47 +0000 Subject: meta: configure pkg-config .pc correctly The library name is correctly libgit2 (not git2) or libgit2-experimental depending on configuration. --- src/libgit2/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libgit2/CMakeLists.txt b/src/libgit2/CMakeLists.txt index 3d1fb90ea..03b571212 100644 --- a/src/libgit2/CMakeLists.txt +++ b/src/libgit2/CMakeLists.txt @@ -103,10 +103,10 @@ if(SONAME) endif() endif() -pkg_build_config(NAME "${LIBGIT2_FILENAME}" +pkg_build_config(NAME "lib${LIBGIT2_FILENAME}" VERSION ${libgit2_VERSION} DESCRIPTION "The git library, take 2" - LIBS_SELF git2 + LIBS_SELF ${LIBGIT2_FILENAME} PRIVATE_LIBS ${LIBGIT2_PC_LIBS} REQUIRES ${LIBGIT2_PC_REQUIRES}) -- cgit v1.2.1