Skip to content

Commit 6306736

Browse files
committed
build CHANGE forbid building even with libssh 0.9.4
It also includes a bug that causes the inactive timeout to elapse even when it should not be measured.
1 parent 664cc46 commit 6306736

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ if(ENABLE_TLS OR ENABLE_DNSSEC OR ENABLE_SSH)
216216
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_TLS")
217217
endif()
218218

219-
#TODO target_link_libraries(netconf2 PUBLIC OpenSSL::SSL OpenSSL::Crypto)
220219
target_link_libraries(netconf2 ${OPENSSL_LIBRARIES})
221220
include_directories(${OPENSSL_INCLUDE_DIR})
222221
endif()
@@ -227,8 +226,8 @@ if(ENABLE_SSH)
227226
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_SSH")
228227
message(STATUS "LibSSH version ${LibSSH_VERSION} found")
229228

230-
if(LibSSH_VERSION VERSION_EQUAL 0.9.3)
231-
message(FATAL_ERROR "LibSSH 0.9.3 includes regression bugs and libnetconf2 will NOT work properly, try to use another version")
229+
if(LibSSH_VERSION VERSION_EQUAL 0.9.3 OR LibSSH_VERSION VERSION_EQUAL 0.9.4)
230+
message(FATAL_ERROR "LibSSH ${LibSSH_VERSION} includes regression bugs and libnetconf2 will NOT work properly, try to use another version")
232231
endif()
233232

234233
if(LibSSH_VERSION VERSION_LESS 0.8.0)

0 commit comments

Comments
 (0)