Module: kamailio Branch: master Commit: fc29dafadd2d2d369dbc069fc1abb4d79c75716d URL: https://github.com/kamailio/kamailio/commit/fc29dafadd2d2d369dbc069fc1abb4d79c75716d
Author: Lyubomir Yatanski <[email protected]> Committer: Xenofon Karamanos <[email protected]> Date: 2025-12-01T10:01:13+02:00 db_redis: fix link order issue OpenSSL/hiredis_ssl --- Modified: src/modules/db_redis/CMakeLists.txt --- Diff: https://github.com/kamailio/kamailio/commit/fc29dafadd2d2d369dbc069fc1abb4d79c75716d.diff Patch: https://github.com/kamailio/kamailio/commit/fc29dafadd2d2d369dbc069fc1abb4d79c75716d.patch --- diff --git a/src/modules/db_redis/CMakeLists.txt b/src/modules/db_redis/CMakeLists.txt index 031ba738b86..0ebe032e015 100644 --- a/src/modules/db_redis/CMakeLists.txt +++ b/src/modules/db_redis/CMakeLists.txt @@ -12,13 +12,13 @@ target_link_libraries(${module_name} PRIVATE hiredis::hiredis) pkg_check_modules(hiredis_ssl IMPORTED_TARGET hiredis_ssl) if(hiredis_ssl_FOUND) + # https://github.com/redis/hiredis?tab=readme-ov-file#using-it find_package(OpenSSL REQUIRED) + target_link_libraries(PkgConfig::hiredis_ssl INTERFACE OpenSSL::SSL OpenSSL::Crypto) # hiredis_ssl found via pkg-config add_library(hiredis::hiredis_ssl ALIAS PkgConfig::hiredis_ssl) target_compile_definitions(${module_name} PRIVATE WITH_SSL) target_link_libraries(${module_name} PRIVATE hiredis::hiredis_ssl) - # https://github.com/redis/hiredis?tab=readme-ov-file#using-it - target_link_libraries(${module_name} PRIVATE OpenSSL::SSL OpenSSL::Crypto) endif() # TODO: Revise when this definition is needed _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
