summaryrefslogtreecommitdiff
path: root/cmake/SelectSSH.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/SelectSSH.cmake')
-rw-r--r--cmake/SelectSSH.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/SelectSSH.cmake b/cmake/SelectSSH.cmake
index 684116200..ca0599e01 100644
--- a/cmake/SelectSSH.cmake
+++ b/cmake/SelectSSH.cmake
@@ -1,5 +1,8 @@
-# find libssh2
-if(USE_SSH STREQUAL ON OR USE_SSH STREQUAL "libssh2")
+if(USE_SSH STREQUAL "exec")
+ set(GIT_SSH_EXEC 1)
+
+ add_feature_info(SSH ON "using OpenSSH exec support")
+elseif(USE_SSH STREQUAL ON OR USE_SSH STREQUAL "libssh2")
find_pkglibraries(LIBSSH2 libssh2)
if(NOT LIBSSH2_FOUND)
find_package(LibSSH2)