@@ -128,9 +128,10 @@ endif()
128
128
if (CPPREST_HTTP_CLIENT_IMPL STREQUAL "asio" )
129
129
cpprest_find_boost ()
130
130
cpprest_find_openssl ()
131
- target_compile_definitions (cpprest PUBLIC -DCPPREST_FORCE_HTTP_CLIENT_ASIO )
131
+ cpprest_find_botan ()
132
+ target_compile_definitions (cpprest PUBLIC -DCPPREST_BOTAN_SSL -DCPPREST_FORCE_HTTP_CLIENT_ASIO )
132
133
target_sources (cpprest PRIVATE http/client/http_client_asio.cpp http/client/x509_cert_utilities.cpp )
133
- target_link_libraries (cpprest PUBLIC cpprestsdk_boost_internal cpprestsdk_openssl_internal )
134
+ target_link_libraries (cpprest PUBLIC cpprestsdk_boost_internal cpprestsdk_openssl_internal cpprestsdk_botan_internal )
134
135
elseif (CPPREST_HTTP_CLIENT_IMPL STREQUAL "winhttp" )
135
136
target_link_libraries (cpprest PRIVATE
136
137
httpapi.lib
@@ -248,6 +249,7 @@ if(CPPREST_INSTALL)
248
249
set (CPPREST_USES_ZLIB OFF )
249
250
set (CPPREST_USES_BROTLI OFF )
250
251
set (CPPREST_USES_OPENSSL OFF )
252
+ set (CPPREST_USES_BOTAN OFF )
251
253
252
254
set (CPPREST_TARGETS cpprest )
253
255
if (TARGET cpprestsdk_boost_internal )
@@ -266,6 +268,10 @@ if(CPPREST_INSTALL)
266
268
list (APPEND CPPREST_TARGETS cpprestsdk_openssl_internal )
267
269
set (CPPREST_USES_OPENSSL ON )
268
270
endif ()
271
+ if (TARGET cpprestsdk_botan_internal )
272
+ list (APPEND CPPREST_TARGETS cpprestsdk_botan_internal )
273
+ set (CPPREST_USES_BOTAN ON )
274
+ endif ()
269
275
if (TARGET cpprestsdk_websocketpp_internal )
270
276
list (APPEND CPPREST_TARGETS cpprestsdk_websocketpp_internal )
271
277
endif ()
0 commit comments