diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-09 20:41:47 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-09 21:50:37 -0800 |
commit | 1a54e42f3d5eeba0a4f579e82e74a57834500d0c (patch) | |
tree | 66ff1717f3643c30abacf82cd011fde9236d6b47 | |
parent | 09532d0463dc04224b70abd7c0242fc0afa2240d (diff) | |
download | subsurface-1a54e42f3d5eeba0a4f579e82e74a57834500d0c.tar.gz |
Fix cmake for libssh2 1.7 and later
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | cmake/Modules/HandleFindGit2.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/HandleFindGit2.cmake b/cmake/Modules/HandleFindGit2.cmake index 7a7da9a91..9d682117d 100644 --- a/cmake/Modules/HandleFindGit2.cmake +++ b/cmake/Modules/HandleFindGit2.cmake @@ -16,7 +16,7 @@ else() include_directories(${LIBGIT2_INCLUDE_DIR}) if(FORCE_LIBSSH) 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) endif() # at least on my Mac I get the mixed case variable instead... |