mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 20:33:41 +00:00
Quote LIBSSH2_LIBRARIES call
Credits to @directhex It is possible for PKG_CHECK_MODULES(LIBSSH2 libssh2) to LIBSSH2_LIBRARIES to a string with more than one library in it - e.g. if your libssh2 was built against libgcrypt, it will be "ssh2;gcrypt" Quoting the string is needed, or CHECK_LIBRARY_EXISTS will fail.
This commit is contained in:
parent
6e0470e0f5
commit
e488bef42c
@ -271,7 +271,7 @@ IF (LIBSSH2_FOUND)
|
|||||||
SET(LIBGIT2_PC_REQUIRES "${LIBGIT2_PC_REQUIRES} libssh2")
|
SET(LIBGIT2_PC_REQUIRES "${LIBGIT2_PC_REQUIRES} libssh2")
|
||||||
SET(SSH_LIBRARIES ${LIBSSH2_LIBRARIES})
|
SET(SSH_LIBRARIES ${LIBSSH2_LIBRARIES})
|
||||||
|
|
||||||
CHECK_LIBRARY_EXISTS(${LIBSSH2_LIBRARIES} libssh2_userauth_publickey_frommemory "" HAVE_LIBSSH2_MEMORY_CREDENTIALS)
|
CHECK_LIBRARY_EXISTS("${LIBSSH2_LIBRARIES}" libssh2_userauth_publickey_frommemory "" HAVE_LIBSSH2_MEMORY_CREDENTIALS)
|
||||||
IF (HAVE_LIBSSH2_MEMORY_CREDENTIALS)
|
IF (HAVE_LIBSSH2_MEMORY_CREDENTIALS)
|
||||||
ADD_DEFINITIONS(-DGIT_SSH_MEMORY_CREDENTIALS)
|
ADD_DEFINITIONS(-DGIT_SSH_MEMORY_CREDENTIALS)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
Loading…
Reference in New Issue
Block a user