summaryrefslogtreecommitdiffstats
path: root/cmake/Modules/HandleFindGit2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/HandleFindGit2.cmake')
-rw-r--r--cmake/Modules/HandleFindGit2.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/Modules/HandleFindGit2.cmake b/cmake/Modules/HandleFindGit2.cmake
index 2f88b36dd..875d0a5b6 100644
--- a/cmake/Modules/HandleFindGit2.cmake
+++ b/cmake/Modules/HandleFindGit2.cmake
@@ -19,6 +19,10 @@ else()
if ("${LIBSSH2_VERSION}" STRGREATER "1.6.1")
set(LIBSSH2_LIBRARIES Libssh2::libssh2)
endif()
+ # at least on my Mac I get the mixed case variable instead...
+ if(Libssh2_FOUND)
+ set(LIBSSH2_FOUND ${Libssh2_FOUND})
+ endif()
if(!LIBSSH2_FOUND OR "${LIBSSH2_FOUND}" STREQUAL "")
pkg_config_library(LIBSSH2 libssh2 REQUIRED)
endif()