summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-02-12 00:34:48 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-02-12 00:34:48 +0100
commit5a2a5771feb3eda0813431980f89785fdc0266f2 (patch)
tree81df691c0de295ef3d871f64cbf8b695cad04a41 /CMakeLists.txt
parent6dbbced2b18f5bb17306bc9baf08e6b4f18acfc7 (diff)
parent461fd5a0c75cbe62dcdd3de23b84e27deb3ded8b (diff)
downloadlibgit2-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.txt3
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()