We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 346d3f8 + 8b31f52 commit f5ae113Copy full SHA for f5ae113
1 file changed
CMakeLists.txt
@@ -189,7 +189,11 @@ endif()
189
if(ENABLE_SSH)
190
find_package(LibSSH 0.7.0 REQUIRED)
191
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_SSH")
192
- target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lssh_threads -lcrypt)
+ if(LibSSH_PACKAGE_FIND_VERSION LESS 0.8.0)
193
+ target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lssh_threads -lcrypt)
194
+ else()
195
+ target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lcrypt)
196
+ endif()
197
include_directories(${LIBSSH_INCLUDE_DIRS})
198
endif()
199
0 commit comments