diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-02-12 00:34:48 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-02-12 00:34:48 +0100 |
commit | 5a2a5771feb3eda0813431980f89785fdc0266f2 (patch) | |
tree | 81df691c0de295ef3d871f64cbf8b695cad04a41 /CMakeLists.txt | |
parent | 6dbbced2b18f5bb17306bc9baf08e6b4f18acfc7 (diff) | |
parent | 461fd5a0c75cbe62dcdd3de23b84e27deb3ded8b (diff) | |
download | libgit2-5a2a5771feb3eda0813431980f89785fdc0266f2.tar.gz |
Merge pull request #2845 from rakuco/libssh2-detection-fix
Add libssh2's library and include directories.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7db18c784..69ce6fed8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,7 +218,8 @@ IF (USE_SSH) ENDIF() IF (LIBSSH2_FOUND) ADD_DEFINITIONS(-DGIT_SSH) - INCLUDE_DIRECTORIES(${LIBSSH2_INCLUDE_DIR}) + INCLUDE_DIRECTORIES(${LIBSSH2_INCLUDE_DIRS}) + LINK_DIRECTORIES(${LIBSSH2_LIBRARY_DIRS}) SET(LIBGIT2_PC_REQUIRES "${LIBGIT2_PC_REQUIRES} libssh2") SET(SSH_LIBRARIES ${LIBSSH2_LIBRARIES}) ELSE() |