Unverified Commit 413bfb83 by Laurent Stacul Committed by GitHub

Update src/CMakeLists.txt

Co-authored-by: Edward Thomson <ethomson@github.com>
parent 0a3a220f
...@@ -232,13 +232,13 @@ ENDIF() ...@@ -232,13 +232,13 @@ ENDIF()
# Optional external dependency: libssh2 # Optional external dependency: libssh2
IF (USE_SSH) IF (USE_SSH)
FIND_PKGLIBRARIES(LIBSSH2 libssh2) FIND_PKGLIBRARIES(LIBSSH2 libssh2)
IF (NOT LIBSSH2_FOUND) IF (NOT LIBSSH2_FOUND)
FIND_PACKAGE(LibSSH2) FIND_PACKAGE(LibSSH2)
SET(LIBSSH2_INCLUDE_DIRS ${LIBSSH2_INCLUDE_DIR}) SET(LIBSSH2_INCLUDE_DIRS ${LIBSSH2_INCLUDE_DIR})
GET_FILENAME_COMPONENT(LIBSSH2_LIBRARY_DIRS "${LIBSSH2_LIBRARY}" DIRECTORY) GET_FILENAME_COMPONENT(LIBSSH2_LIBRARY_DIRS "${LIBSSH2_LIBRARY}" DIRECTORY)
SET(LIBSSH2_LIBRARIES ${LIBSSH2_LIBRARY}) SET(LIBSSH2_LIBRARIES ${LIBSSH2_LIBRARY})
SET(LIBSSH2_LDFLAGS "-lssh2") SET(LIBSSH2_LDFLAGS "-lssh2")
ENDIF() ENDIF()
ENDIF() ENDIF()
IF (LIBSSH2_FOUND) IF (LIBSSH2_FOUND)
SET(GIT_SSH 1) SET(GIT_SSH 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment