1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

cmake fix pthread detection

* dont treat pthreads like a normal lib

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
This commit is contained in:
Andy Walsh 2018-07-25 12:41:43 +02:00
parent 879dc8f6b8
commit 4f6bedf6d9

View File

@ -128,7 +128,7 @@ if(UNIX)
add_definitions(-DUNIX) add_definitions(-DUNIX)
find_library(LIB_PTHREAD pthread) find_package(Threads)
find_library(LIB_READLINE readline) find_library(LIB_READLINE readline)
find_library(LIB_NCURSES ncurses) find_library(LIB_NCURSES ncurses)
find_library(LIB_Z z) find_library(LIB_Z z)
@ -176,7 +176,7 @@ if(UNIX)
endif() endif()
endif() endif()
target_link_libraries(mayaqua ${LIB_PTHREAD} ${LIB_SSL} ${LIB_CRYPTO} ${LIB_READLINE} ${LIB_NCURSES} ${LIB_Z}) target_link_libraries(mayaqua ${CMAKE_THREAD_LIBS_INIT} ${LIB_SSL} ${LIB_CRYPTO} ${LIB_READLINE} ${LIB_NCURSES} ${LIB_Z})
if(LIB_ICONV) if(LIB_ICONV)
target_link_libraries(mayaqua ${LIB_ICONV}) target_link_libraries(mayaqua ${LIB_ICONV})