BUGFIX ssh_threads lib directory passed to linker
Fixes #11
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 79a4300..d65fbd9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -114,7 +114,7 @@
if(ENABLE_SSH)
find_package(LibSSH 0.6.4 REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_SSH ${LIBSSH_DEFINITIONS}")
- target_link_libraries(netconf2 ${LIBSSH_LIBRARIES} -lssh_threads -lcrypt)
+ target_link_libraries(netconf2 ${LIBSSH_LIBRARIES} -L${SSH_LIBRARY} -lssh_threads -lcrypt)
include_directories(${LIBSSH_INCLUDE_DIRS})
endif()