diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-02-27 22:08:47 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-02-27 22:08:47 +0000 |
commit | 3142fdba3258cce583e6590ca135e3b665c81c64 (patch) | |
tree | 4d6a1b4e00059e4bf51632e4cc1c5b91054c48a7 | |
parent | 44d3372e4097d01a279fa51bbc2e0c8672ef25f7 (diff) | |
download | libgit2-3142fdba3258cce583e6590ca135e3b665c81c64.tar.gz |
meta: configure pkg-config .pc correctly
The library name is correctly libgit2 (not git2) or libgit2-experimental
depending on configuration.
-rw-r--r-- | src/libgit2/CMakeLists.txt | 4 |
1 files 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}) |