@@ -33,18 +33,22 @@ set(client_connector_libs "")
33
33
set (server_connector_source "" )
34
34
set (server_connector_header "" )
35
35
set (server_connector_libs "" )
36
+ set (SERVER_LIBS "" )
37
+ set (CLIENT_LIBS "" )
36
38
37
39
# setup sources for http connectors
38
40
if (HTTP_CLIENT )
39
41
list (APPEND client_connector_header "client/connectors/httpclient.h" )
40
42
list (APPEND client_connector_source "client/connectors/httpclient.cpp" )
41
- list (APPEND client_connector_libs ${CURL_LIBRARIES} )
43
+ list (APPEND client_connector_libs ${CURL_LIBRARIES} )
44
+ set (CLIENT_LIBS "${CLIENT_LIBS} -lcurl" )
42
45
endif ()
43
46
44
47
if (HTTP_SERVER )
45
48
list (APPEND server_connector_header "server/connectors/httpserver.h" )
46
49
list (APPEND server_connector_source "server/connectors/httpserver.cpp" )
47
- list (APPEND server_connector_libs ${CMAKE_THREAD_LIBS_INIT} ${MHD_LIBRARIES} )
50
+ list (APPEND server_connector_libs ${CMAKE_THREAD_LIBS_INIT} ${MHD_LIBRARIES} )
51
+ set (SERVER_LIBS "${SERVER_LIBS} -lmicrohttpd" )
48
52
endif ()
49
53
50
54
# setup sources for redis connectors
@@ -53,12 +57,14 @@ if (REDIS_CLIENT)
53
57
list (APPEND client_connector_source "client/connectors/redisclient.cpp" )
54
58
list (APPEND client_connector_libs ${HIREDIS_LIBRARIES} )
55
59
include_directories (${HIREDIS_INCLUDE_DIRS} )
60
+ set (CLIENT_LIBS "${CLIENT_LIBS} -lhiredis" )
56
61
endif ()
57
62
58
63
if (REDIS_SERVER )
59
64
list (APPEND server_connector_header "server/connectors/redisserver.h" )
60
65
list (APPEND server_connector_source "server/connectors/redisserver.cpp" )
61
66
list (APPEND server_connector_libs ${CMAKE_THREAD_LIBS_INIT} ${HIREDIS_LIBRARIES} )
67
+ set (SERVER_LIBS "${SERVER_LIBS} -lhiredis" )
62
68
endif ()
63
69
64
70
# setup sources for unix domain socket connectors
0 commit comments