mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-30 01:53:17 +03:00
fixed: linux curl link error
This commit is contained in:
parent
b8fc718b5a
commit
3aec1b01ca
@ -137,12 +137,17 @@ if (UNIX)
|
||||
check_library_exists("pthread" pthread_create "" HAVE_PTHREAD)
|
||||
if (HAVE_PTHREAD)
|
||||
list(APPEND libs pthread)
|
||||
else (HAVE_PTHREAD)
|
||||
else()
|
||||
message(FATAL_ERROR "Missing library: pthread")
|
||||
endif()
|
||||
|
||||
find_library(lib_CURL CURL)
|
||||
list(APPEND libs ${lib_CURL})
|
||||
# curl is used on both Linux and Mac
|
||||
find_package(CURL)
|
||||
if (CURL_FOUND)
|
||||
list(APPEND libs curl)
|
||||
else()
|
||||
message(FATAL_ERROR "Missing library: curl")
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
exec_program(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION)
|
||||
|
@ -40,7 +40,7 @@ endif()
|
||||
include_directories(${inc})
|
||||
add_executable(syntool ${src})
|
||||
target_link_libraries(syntool
|
||||
arch base client common io mt net ipc platform synergy cryptopp ${libs})
|
||||
synergy arch base client common io ipc mt net platform server cryptopp ${libs})
|
||||
|
||||
if (CONF_CPACK)
|
||||
install(TARGETS
|
||||
|
Loading…
Reference in New Issue
Block a user