build CHANGE fail to compile with libssh 0.9.3
It includes fatal regression bugs.
Refs #192
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d9a880a..f7e4ee3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -207,6 +207,10 @@
if(ENABLE_SSH)
find_package(LibSSH 0.7.0 REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_SSH")
+ message(STATUS "LibSSH version ${LibSSH_VERSION} found")
+ if(LibSSH_VERSION VERSION_EQUAL 0.9.3)
+ message(FATAL_ERROR "LibSSH 0.9.3 includes regression bugs and libnetconf2 will NOT work properly, try to use an older version")
+ endif()
if(LibSSH_VERSION VERSION_LESS 0.8.0)
target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lssh_threads -lcrypt)
else()