web_service: infect other targets with OpenSSL exports ...
... this can avoid the missing symbol issue when linking
This commit is contained in:
parent
3bb027ac12
commit
8d603032f8
2 changed files with 10 additions and 1 deletions
|
@ -14,7 +14,8 @@ add_library(web_service STATIC
|
|||
create_target_directory_groups(web_service)
|
||||
|
||||
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)
|
||||
target_link_libraries(web_service PRIVATE ifaddrs)
|
||||
elseif(WIN32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue