mirror of
https://github.com/curl/curl.git
synced 2026-07-24 08:47:50 +03:00
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
This commit is contained in:
parent
29e40a6d8a
commit
8792a59223
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue