Skip to content

Commit 933c09d

Browse files
committed
CMake: Search for ssh2 instead of libssh2.
Fixes "CMake Error: could not resolve ssh2" on Windows-MSVC.
1 parent f041a94 commit 933c09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/SelectSSH.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Optional external dependency: libssh2
22
if(USE_SSH)
3-
find_pkglibraries(LIBSSH2 libssh2)
3+
find_pkglibraries(LIBSSH2 ssh2)
44
if(NOT LIBSSH2_FOUND)
55
find_package(LibSSH2)
66
set(LIBSSH2_INCLUDE_DIRS ${LIBSSH2_INCLUDE_DIR})

0 commit comments

Comments
 (0)