fix: propagate CPPHTTPLIB_OPENSSL_SUPPORT to cpp-httplib target when LLAMA_SERVER_SSL=ON (#1451)
Without this, libcpp-httplib.a is compiled without SSL support, causing an undefined reference to httplib::SSLServer at link time even though the OpenSSL libraries are present on the link line. Fixes #1449 Co-authored-by: kerem seyhan <kerem.seyhan@codecut.de>
This commit is contained in:
parent
bd1e604d0c
commit
a399456c12
|
|
@ -84,6 +84,8 @@ if (LLAMA_SERVER_SSL)
|
|||
find_package(OpenSSL REQUIRED)
|
||||
target_link_libraries(${TARGET} PRIVATE OpenSSL::SSL OpenSSL::Crypto)
|
||||
target_compile_definitions(${TARGET} PRIVATE CPPHTTPLIB_OPENSSL_SUPPORT)
|
||||
target_compile_definitions(cpp-httplib PRIVATE CPPHTTPLIB_OPENSSL_SUPPORT)
|
||||
target_link_libraries(cpp-httplib PRIVATE OpenSSL::SSL OpenSSL::Crypto)
|
||||
endif()
|
||||
|
||||
if (LLAMA_SERVER_SQLITE3)
|
||||
|
|
|
|||
Loading…
Reference in New Issue