From: nicoguillier <59726521+nicoguillier@users.noreply.github.com> Date: Fri, 10 Jan 2020 08:57:38 +0000 (+0100) Subject: cmake: Improve libssh2 check on Windows X-Git-Tag: curl-7_69_0~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8792a592232a8578c6217a2f8a07bc5f33c3a82f;p=thirdparty%2Fcurl.git cmake: Improve libssh2 check on Windows - Add "libssh2" name to FindLibSSH2 library search. On Windows systems, libSSH2 CMake installation may name the library "LibSSH2". Prior to this change cmake only checked for name "ssh2". On Linux that works fine because it will prepend the "lib", but it doesn't do that on Windows. Closes https://github.com/curl/curl/pull/4804 --- diff --git a/CMake/FindLibSSH2.cmake b/CMake/FindLibSSH2.cmake index 84822dba74..0d6219425e 100644 --- a/CMake/FindLibSSH2.cmake +++ b/CMake/FindLibSSH2.cmake @@ -12,7 +12,7 @@ endif() find_path(LIBSSH2_INCLUDE_DIR libssh2.h ) -find_library(LIBSSH2_LIBRARY NAMES ssh2 +find_library(LIBSSH2_LIBRARY NAMES ssh2 libssh2 ) if(LIBSSH2_INCLUDE_DIR)