summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-09-02 12:31:59 +0200
committerAndreas Schneider <asn@cynapses.org>2010-09-02 12:31:59 +0200
commitaff5786ed30966dc0a00ffee3c56a9d1b5a08a7d (patch)
treeb3ecee17950bc56342e817696762df663fc3b78e /ConfigureChecks.cmake
parentf97928c7409b8135f9fe85b67400a1dde5292621 (diff)
downloadlibssh-aff5786ed30966dc0a00ffee3c56a9d1b5a08a7d.tar.gz
libssh-aff5786ed30966dc0a00ffee3c56a9d1b5a08a7d.tar.xz
libssh-aff5786ed30966dc0a00ffee3c56a9d1b5a08a7d.zip
thread: Fixed detection of thread libraries on Windows.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 93a6897a..6b799b45 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -110,9 +110,11 @@ if (Z_LIBRARY)
endif (Z_LIBRARY)
if (CMAKE_HAVE_THREADS_LIBRARY)
- set(HAVE_PTHREAD 1)
+ if (CMAKE_HAVE_PTHREADS_CREATE OR CMAKE_HAVE_PTHREAD_CREATE)
+ set(HAVE_PTHREAD 1)
- set(LIBSSH_REQUIRED_LIBRARIES ${LIBSSH_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
+ set(LIBSSH_REQUIRED_LIBRARIES ${LIBSSH_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
+ endif (CMAKE_HAVE_PTHREADS_CREATE OR CMAKE_HAVE_PTHREAD_CREATE)
endif (CMAKE_HAVE_THREADS_LIBRARY)
# OPTIONS