Skip to content

Commit f2a28fc

Browse files
author
Chaitanya Tata
committed
libssh: Fix the replace order to derive libssh path
In order to derive the library path to include for libssh from the .so file path, fix the replace order, otherwise you end up with an extra "/lib" in the path and the build will not be able to find the libssh.
1 parent 02ea9ad commit f2a28fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeModules/FindLibSSH.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ else (LIBSSH_LIBRARY_DIR AND LIBSSH_INCLUDE_DIRS)
7070
)
7171

7272
if (SSH_FOUND)
73-
string(REPLACE "ssh.so" ""
73+
string(REPLACE "libssh.so" ""
7474
LIBSSH_LIBRARY_DIR
7575
${SSH_LIBRARY}
7676
)
77-
string(REPLACE "libssh.so" ""
77+
string(REPLACE "ssh.so" ""
7878
LIBSSH_LIBRARY_DIR
7979
${LIBSSH_LIBRARY_DIR}
8080
)

0 commit comments

Comments
 (0)