mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Cmake: another attempt to make things work with libssh2
This seems to work on all the systems I was able to test it on. Famous last words. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
57bad198cb
commit
da7fb2eff4
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ else()
|
|||
if(USE_LIBGIT23_API)
|
||||
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")
|
||||
find_package(Libssh2 QUIET CONFIG)
|
||||
if (${LIBSSH2_VERSION} STRGREATER "1.6.1")
|
||||
set(LIBSSH2_LIBRARIES Libssh2::libssh2)
|
||||
endif()
|
||||
if(!LIBSSH2_FOUND OR "${LIBSSH2_FOUND}" STREQUAL "")
|
||||
|
|
Loading…
Reference in a new issue