From c01ae67af717e69c5225aaba3f3b50e7c5d0bdae Mon Sep 17 00:00:00 2001 From: Roger Light Date: Sat, 21 Aug 2021 09:44:31 +0100 Subject: [PATCH] Fix openssl not being linked to dynamic security plugin. Closes #2277. Thanks to LeSuisse. --- ChangeLog.txt | 1 + plugins/dynamic-security/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index c8c914e1..3d6e13ee 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -54,6 +54,7 @@ Broker: reconnecting. Closes #2173. - Fix QoS 0 messages not being queued when `queue_qos0_messages` was enabled. Closes #2224. +- Fix openssl not being linked to dynamic security plugin. Closes #2277. Clients: - If sending mosquitto_sub output to a pipe, mosquitto_sub will now detect diff --git a/plugins/dynamic-security/CMakeLists.txt b/plugins/dynamic-security/CMakeLists.txt index 0e02518c..465b99b2 100644 --- a/plugins/dynamic-security/CMakeLists.txt +++ b/plugins/dynamic-security/CMakeLists.txt @@ -32,7 +32,7 @@ if (CJSON_FOUND AND WITH_TLS) ) set_target_properties(mosquitto_dynamic_security PROPERTIES PREFIX "") - target_link_libraries(mosquitto_dynamic_security ${CJSON_LIBRARIES}) + target_link_libraries(mosquitto_dynamic_security ${CJSON_LIBRARIES} ${OPENSSL_LIBRARIES}) if(WIN32) target_link_libraries(mosquitto_dynamic_security mosquitto) endif(WIN32)