mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 11:06:32 +00:00
CMake: Search for ssh2 instead of libssh2.
Fixes "CMake Error: could not resolve ssh2" on Windows-MSVC.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Optional external dependency: libssh2
|
||||
if(USE_SSH)
|
||||
find_pkglibraries(LIBSSH2 libssh2)
|
||||
find_pkglibraries(LIBSSH2 ssh2)
|
||||
if(NOT LIBSSH2_FOUND)
|
||||
find_package(LibSSH2)
|
||||
set(LIBSSH2_INCLUDE_DIRS ${LIBSSH2_INCLUDE_DIR})
|
||||
|
||||
Reference in New Issue
Block a user