Skip to content

Commit faa04b3

Browse files
committed
cmake BUGFIX ssh_threads linking
Fixes #627
1 parent fc71192 commit faa04b3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeModules/FindLibSSH.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ else()
9090

9191
if(LIBSSH_VERSION VERSION_LESS 0.8.0)
9292
# libssh_threads also needs to be linked for these versions
93-
string(REPLACE "libssh.so" ""
93+
string(REPLACE "libssh.so" "libssh_threads.so"
9494
LIBSSH_THREADS_LIBRARY
9595
${LIBSSH_LIBRARY}
9696
)
97-
string(REPLACE "libssh.dylib" ""
97+
string(REPLACE "libssh.dylib" "libssh_threads.dylib"
9898
LIBSSH_THREADS_LIBRARY
9999
${LIBSSH_THREADS_LIBRARY}
100100
)
101-
string(REPLACE "ssh.so" ""
101+
string(REPLACE "ssh.so" "ssh_threads.so"
102102
LIBSSH_THREADS_LIBRARY
103103
${LIBSSH_THREADS_LIBRARY}
104104
)

0 commit comments

Comments
 (0)