Skip to content

Commit 1436092

Browse files
committed
build CHANGE fail to compile with libssh 0.9.3
It includes fatal regression bugs. Refs #192
1 parent 73bbfab commit 1436092

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ endif()
213213
if(ENABLE_SSH)
214214
find_package(LibSSH 0.7.0 REQUIRED)
215215
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_SSH")
216+
message(STATUS "LibSSH version ${LibSSH_VERSION} found")
217+
if(LibSSH_VERSION VERSION_EQUAL 0.9.3)
218+
message(FATAL_ERROR "LibSSH 0.9.3 includes regression bugs and libnetconf2 will NOT work properly, try to use an older version")
219+
endif()
216220
if(LibSSH_VERSION VERSION_LESS 0.8.0)
217221
target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lssh_threads -lcrypt)
218222
else()

0 commit comments

Comments
 (0)