diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-02-24 00:34:06 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-04-11 10:18:16 +0100 |
commit | 6b4e046892c52da16b15162e39a66c875c1637bf (patch) | |
tree | 01ec5f6a3ed90c4214cca7247280fc9ecc0a4018 /cmake/SelectSSH.cmake | |
parent | f2723b28a45424e9b6933d65055f774cd7d5bfd1 (diff) | |
download | libgit2-6b4e046892c52da16b15162e39a66c875c1637bf.tar.gz |
ssh: introduce GIT_SSH_EXEC for external OpenSSH
We can now use the `git_process` class to invoke OpenSSH and use it as
an SSH transport. This may be preferred over libssh2 for a variety of
callers.
Diffstat (limited to 'cmake/SelectSSH.cmake')
-rw-r--r-- | cmake/SelectSSH.cmake | 7 |
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) |