Skip to content
Permalink
Browse files

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 #4804
  • Loading branch information
nicoguillier authored and jay committed Jan 10, 2020
1 parent 29e40a6 commit 8792a592232a8578c6217a2f8a07bc5f33c3a82f
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit 8792a59

Please sign in to comment.
You can’t perform that action at this time.