mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Fix build with libssh from git
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
65babff6bc
commit
ab6e2cc9b4
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ else()
|
|||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_LIBGIT23_API")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LIBGIT23_API")
|
||||
find_package(libssh2 QUIET)
|
||||
if (${LIBSSH2_VERSION} STRGREATER "1.6.0")
|
||||
set(LIBSSH2_LIBRARIES Libssh2::libssh2)
|
||||
endif()
|
||||
if(!LIBSSH2_FOUND OR "${LIBSSH2_FOUND}" STREQUAL "")
|
||||
pkg_config_library(LIBSSH2 libssh2 REQUIRED)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue