From 933c09dbec8bece0a33d9b1792fcc9adeba28045 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sun, 25 Jun 2023 05:12:57 +0200 Subject: [PATCH] CMake: Search for ssh2 instead of libssh2. Fixes "CMake Error: could not resolve ssh2" on Windows-MSVC. --- cmake/SelectSSH.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/SelectSSH.cmake b/cmake/SelectSSH.cmake index 23dfc9785..968a63114 100644 --- a/cmake/SelectSSH.cmake +++ b/cmake/SelectSSH.cmake @@ -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})