diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2020-01-16 16:22:27 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-04-01 14:35:17 +0200 |
commit | a9a7c2dc29a27fb4c34490ff3488638563536ac5 (patch) | |
tree | dd124db36b4b27161d6dea687e3dbeda7368b51a | |
parent | 8e00d1f0a889ada84053c0506c6eb41feb80ab0d (diff) | |
download | libssh-a9a7c2dc29a27fb4c34490ff3488638563536ac5.tar.gz libssh-a9a7c2dc29a27fb4c34490ff3488638563536ac5.tar.xz libssh-a9a7c2dc29a27fb4c34490ff3488638563536ac5.zip |
cmake: Fix building with threading support on MinGW
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
-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 39a1eaf1..a5129ba4 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 (MINGW AND Threads_FOUND) + set(LIBSSH_LINK_LIBRARIES + ${LIBSSH_LINK_LIBRARIES} + Threads::Threads + ) +endif() + if (BUILD_STATIC_LIB) set(LIBSSH_STATIC_LIBRARY ssh_static |