Subject: [PATCH] Link correctly with shared websockets library if needed see: https://github.com/eclipse/mosquitto/pull/2751
From: Joachim Zobel <[email-masked]>
Date: Wed, 13 Sep 2023 09:55:34 +0200

Patch contributed by Joachim Zobel <[email-masked]> and  Daniel Engberg <[email-masked]>
---
Upstream-Status: Pending

 src/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9380a04..dce8313 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -200,7 +200,7 @@ if (WITH_WEBSOCKETS)
 			link_directories(${mosquitto_SOURCE_DIR})
 		endif (WIN32)
 	else (STATIC_WEBSOCKETS)
-		set (MOSQ_LIBS ${MOSQ_LIBS} websockets)
+		set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared)
 	endif (STATIC_WEBSOCKETS)
 endif (WITH_WEBSOCKETS)