Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f334ba

Browse files
slavikuscarlosmn
authored andcommitted
Forcing libssh2 lib location
OS X may have libssh2 in diff locations, so CHECK_LIBRARY_EXISTS may check the wrong lib; forcing it to use a found directory.
1 parent d72914d commit 9f334ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ IF (LIBSSH2_FOUND)
286286
#SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} ${LIBSSH2_LDFLAGS}")
287287
SET(SSH_LIBRARIES ${LIBSSH2_LIBRARIES})
288288

289-
CHECK_LIBRARY_EXISTS("${LIBSSH2_LIBRARIES}" libssh2_userauth_publickey_frommemory "" HAVE_LIBSSH2_MEMORY_CREDENTIALS)
289+
CHECK_LIBRARY_EXISTS("${LIBSSH2_LIBRARIES}" libssh2_userauth_publickey_frommemory "${LIBSSH2_LIBRARY_DIRS}" HAVE_LIBSSH2_MEMORY_CREDENTIALS)
290290
IF (HAVE_LIBSSH2_MEMORY_CREDENTIALS)
291291
ADD_DEFINITIONS(-DGIT_SSH_MEMORY_CREDENTIALS)
292292
ENDIF()

0 commit comments

Comments
 (0)