1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

thread: Fixed detection of thread libraries on Windows.

This commit is contained in:
Andreas Schneider
2010-09-02 12:31:59 +02:00
parent f97928c740
commit aff5786ed3
2 changed files with 8 additions and 4 deletions

View File

@ -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