aboutsummaryrefslogtreecommitdiff
path: root/src/threads
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-09-08 16:51:55 +0200
committerAndreas Schneider <asn@cynapses.org>2010-09-08 16:51:55 +0200
commitf45dc29eb235b29d7dc9e86a239189c2473d44f7 (patch)
treee3d7c262e16206837ac8745bab5fdd86f7c1948f /src/threads
parentd2f38da094a2c9eeddf919c252137ca49bcf29a1 (diff)
downloadlibssh-f45dc29eb235b29d7dc9e86a239189c2473d44f7.tar.gz
libssh-f45dc29eb235b29d7dc9e86a239189c2473d44f7.tar.xz
libssh-f45dc29eb235b29d7dc9e86a239189c2473d44f7.zip
build: Improve pthread detection.
Diffstat (limited to 'src/threads')
-rw-r--r--src/threads/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threads/CMakeLists.txt b/src/threads/CMakeLists.txt
index 74d98dcb..953988f2 100644
--- a/src/threads/CMakeLists.txt
+++ b/src/threads/CMakeLists.txt
@@ -31,7 +31,7 @@ set(libssh_threads_SRCS
)
# build and link pthread
-if (CMAKE_HAVE_PTHREADS_CREATE OR CMAKE_HAVE_PTHREAD_CREATE)
+if (CMAKE_USE_PTHREADS_INIT)
set(libssh_threads_SRCS
${libssh_threads_SRCS}
pthread.c
@@ -41,7 +41,7 @@ if (CMAKE_HAVE_PTHREADS_CREATE OR CMAKE_HAVE_PTHREAD_CREATE)
${LIBSSH_THREADS_LINK_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
-endif (CMAKE_HAVE_PTHREADS_CREATE OR CMAKE_HAVE_PTHREAD_CREATE)
+endif (CMAKE_USE_PTHREADS_INIT)
set(LIBSSH_THREADS_LINK_LIBRARIES
${LIBSSH_THREADS_LINK_LIBRARIES}