Merge pull request #6045 from liushuyu/web-export-ssl
web_service: infect other targets with OpenSSL exports
This commit is contained in:
commit
3f16cd9c82
2 changed files with 10 additions and 1 deletions
|
@ -13,4 +13,12 @@ add_library(network STATIC
|
||||||
|
|
||||||
create_target_directory_groups(network)
|
create_target_directory_groups(network)
|
||||||
|
|
||||||
|
if (ENABLE_WEB_SERVICE)
|
||||||
|
target_compile_definitions(network PRIVATE -DENABLE_WEB_SERVICE -DCPPHTTPLIB_OPENSSL_SUPPORT)
|
||||||
|
target_link_libraries(network PRIVATE web_service httplib)
|
||||||
|
if (ANDROID)
|
||||||
|
target_link_libraries(network PRIVATE ifaddrs)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(network PRIVATE common enet Boost::serialization)
|
target_link_libraries(network PRIVATE common enet Boost::serialization)
|
||||||
|
|
|
@ -14,7 +14,8 @@ add_library(web_service STATIC
|
||||||
create_target_directory_groups(web_service)
|
create_target_directory_groups(web_service)
|
||||||
|
|
||||||
target_compile_definitions(web_service PRIVATE -DCPPHTTPLIB_OPENSSL_SUPPORT)
|
target_compile_definitions(web_service PRIVATE -DCPPHTTPLIB_OPENSSL_SUPPORT)
|
||||||
target_link_libraries(web_service PRIVATE common network json-headers ${OPENSSL_LIBS} httplib cpp-jwt)
|
target_link_libraries(web_service PRIVATE common network json-headers httplib cpp-jwt)
|
||||||
|
target_link_libraries(web_service PUBLIC ${OPENSSL_LIBS})
|
||||||
if (ANDROID)
|
if (ANDROID)
|
||||||
target_link_libraries(web_service PRIVATE ifaddrs)
|
target_link_libraries(web_service PRIVATE ifaddrs)
|
||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
|
|
Loading…
Reference in a new issue