externals: Move LibreSSL linking to httplib.

Neither core nor web_services use OpenSSL nor LibreSSL.
However they need to link them as it's a requirement of httplib.
So let's declare this within httplib instead of core and web_services.
This commit is contained in:
Markus Wick 2020-04-16 16:46:33 +02:00
parent 94c2c828a5
commit fedf750e1b
3 changed files with 9 additions and 12 deletions

View file

@ -8,9 +8,4 @@ add_library(web_service STATIC
)
create_target_directory_groups(web_service)
get_directory_property(OPENSSL_LIBS
DIRECTORY ${PROJECT_SOURCE_DIR}/externals/libressl
DEFINITION OPENSSL_LIBS)
target_compile_definitions(web_service PRIVATE -DCPPHTTPLIB_OPENSSL_SUPPORT)
target_link_libraries(web_service PRIVATE common json-headers ${OPENSSL_LIBS} httplib lurlparser)
target_link_libraries(web_service PRIVATE common json-headers httplib lurlparser)