mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-08 01:09:46 +00:00
cmake: Add CMake check for libssh2 memory credential passing support
This commit is contained in:
parent
08e6b875c1
commit
1679ec1204
@ -270,6 +270,11 @@ IF (LIBSSH2_FOUND)
|
|||||||
LINK_DIRECTORIES(${LIBSSH2_LIBRARY_DIRS})
|
LINK_DIRECTORIES(${LIBSSH2_LIBRARY_DIRS})
|
||||||
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)
|
||||||
|
IF (HAVE_LIBSSH2_MEMORY_CREDENTIALS)
|
||||||
|
ADD_DEFINITIONS(-DGIT_SSH_MEMORY_CREDENTIALS)
|
||||||
|
ENDIF()
|
||||||
ELSE()
|
ELSE()
|
||||||
MESSAGE(STATUS "LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path.")
|
MESSAGE(STATUS "LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path.")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
Loading…
Reference in New Issue
Block a user