diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2020-01-16 16:22:27 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-01-16 16:22:27 +0100 |
commit | cd53c1422031e3cc04857d9cc8ee1cdb8d38fe1b (patch) | |
tree | ed639da525aee2a66f7da7b7976695a59fda2ae1 | |
parent | df1f64d4351f0ab44d69edf565c69fe4020ee0ef (diff) | |
download | libssh-cd53c1422031e3cc04857d9cc8ee1cdb8d38fe1b.tar.gz libssh-cd53c1422031e3cc04857d9cc8ee1cdb8d38fe1b.tar.xz libssh-cd53c1422031e3cc04857d9cc8ee1cdb8d38fe1b.zip |
cmake: Fix building with threading supportmaster-threads
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 30629db0..17bbf0c0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -85,6 +85,13 @@ if (WITH_NACL AND NACL_FOUND) ) endif (WITH_NACL AND NACL_FOUND) +if (Threads_FOUND) + set(LIBSSH_LINK_LIBRARIES + ${LIBSSH_LINK_LIBRARIES} + Threads::Threads + ) +endif() + if (BUILD_STATIC_LIB) set(LIBSSH_STATIC_LIBRARY ssh_static |