mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix cmake for libssh2 1.7 and later
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ea281b66a8
commit
3f4d0e317d
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ else()
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LIBGIT23_API")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LIBGIT23_API")
|
||||||
if(FORCE_LIBSSH)
|
if(FORCE_LIBSSH)
|
||||||
find_package(Libssh2 QUIET CONFIG)
|
find_package(Libssh2 QUIET CONFIG)
|
||||||
if ("${LIBSSH2_VERSION}" STRGREATER "1.6.1")
|
if ("${LIBSSH2_VERSION}" STRLESS "1.7" AND "${LIBSSH2_VERSION}" STRGREATER "1.6.1")
|
||||||
set(LIBSSH2_LIBRARIES Libssh2::libssh2)
|
set(LIBSSH2_LIBRARIES Libssh2::libssh2)
|
||||||
endif()
|
endif()
|
||||||
if(!LIBSSH2_FOUND OR "${LIBSSH2_FOUND}" STREQUAL "")
|
if(!LIBSSH2_FOUND OR "${LIBSSH2_FOUND}" STREQUAL "")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue