mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-01 09:10:03 +00:00
Only search for Pthread on Windows platforms
This commit is contained in:
parent
956c9e063d
commit
3e72f6effd
@ -1,3 +1,4 @@
|
|||||||
|
set(THREADS_USE_PTHREADS_WIN32 true)
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
|
|
||||||
set(libs
|
set(libs
|
||||||
@ -40,7 +41,7 @@ target_link_libraries(ssl_mail_client ${libs})
|
|||||||
|
|
||||||
if(THREADS_FOUND)
|
if(THREADS_FOUND)
|
||||||
add_executable(ssl_pthread_server ssl_pthread_server.c)
|
add_executable(ssl_pthread_server ssl_pthread_server.c)
|
||||||
target_link_libraries(ssl_pthread_server ${libs} pthread)
|
target_link_libraries(ssl_pthread_server ${libs} ${CMAKE_THREAD_LIBS_INIT})
|
||||||
set(targets ${targets} ssl_pthread_server)
|
set(targets ${targets} ssl_pthread_server)
|
||||||
endif(THREADS_FOUND)
|
endif(THREADS_FOUND)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user