CMakelist check full version string
@@ -189,7 +189,7 @@ 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)
+ if(LibSSH_PACKAGE_FIND_VERSION LESS 0.8.0)
target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lssh_threads -lcrypt)
else()
target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lcrypt)
