Files
MINGW-packages/mingw-w64-libgit2/0001-fix-libssh2-pc-dep.patch
Christoph Reiter 19f02ef1c9 libgit2: remove PKG_CONFIG_WITHOUT_PREFIX usage
Don't write pkgconfig output into the .pc file, use Requires.private instead

See #8255
2021-06-23 00:13:42 +02:00

12 lines
579 B
Diff

--- libgit2-1.1.0/src/CMakeLists.txt.orig 2021-06-23 00:06:33.219000000 +0200
+++ libgit2-1.1.0/src/CMakeLists.txt 2021-06-23 00:07:54.493725200 +0200
@@ -216,7 +216,7 @@
SET(GIT_SSH 1)
LIST(APPEND LIBGIT2_SYSTEM_INCLUDES ${LIBSSH2_INCLUDE_DIRS})
LIST(APPEND LIBGIT2_LIBS ${LIBSSH2_LIBRARIES})
- LIST(APPEND LIBGIT2_PC_LIBS ${LIBSSH2_LDFLAGS})
+ LIST(APPEND LIBGIT2_PC_REQUIRES "libssh2")
CHECK_LIBRARY_EXISTS("${LIBSSH2_LIBRARIES}" libssh2_userauth_publickey_frommemory "${LIBSSH2_LIBRARY_DIRS}" HAVE_LIBSSH2_MEMORY_CREDENTIALS)
IF (HAVE_LIBSSH2_MEMORY_CREDENTIALS)