CMakelist ADD compatibility with libssh 0.8.0 and 0.8.1
@@ -189,7 +189,11 @@ endif()
if(ENABLE_SSH)
find_package(LibSSH 0.7.0 REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_SSH")
+ if(LibSSH_PACKAGE_FIND_VERSION_MINOR LESS 8)
target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lssh_threads -lcrypt)
+ else()
+ target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lcrypt)
+ endif()
include_directories(${LIBSSH_INCLUDE_DIRS})
endif()
