File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ if (UNIX)
130
130
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
131
131
target_link_libraries (fileserver rt )
132
132
endif ()
133
+ if (OPENSSL_FOUND )
134
+ target_link_libraries (fileserver ${OPENSSL_LIBRARIES} )
135
+ endif (OPENSSL_FOUND )
133
136
endif (UNIX )
134
137
135
138
set_target_properties (http_client PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example )
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ if (Boost_FOUND)
74
74
add_executable (cpp-netlib-http-${test} ${test} .cpp )
75
75
add_dependencies (cpp-netlib-http-${test} cppnetlib-server-parsers )
76
76
target_link_libraries (cpp-netlib-http-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-server-parsers )
77
+ if (OPENSSL_FOUND )
78
+ target_link_libraries (cpp-netlib-http-${test} ${OPENSSL_LIBRARIES} )
79
+ endif ()
77
80
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU AND ${CMAKE_SYSTEM_NAME} MATCHES "Windows" )
78
81
target_link_libraries (cpp-netlib-http-${test} ws2_32 wsock32 )
79
82
endif ()
You can’t perform that action at this time.
0 commit comments