Open narc-Ontakac2 opened 1 year ago
Libwebsockets changed its cmake interface. This adapts to that:
if (WITH_WEBSOCKETS)
if (STATIC_WEBSOCKETS)
- set (MOSQ_LIBS ${MOSQ_LIBS} websockets_static)
+ set (MOSQ_LIBS ${MOSQ_LIBS} websockets)
if (WIN32)
set (MOSQ_LIBS ${MOSQ_LIBS} iphlpapi)
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)
Looking at the linker options when building with debuild on Debian bookworm I see
which tells me that libwebsockets is linked statically. In case that it is intentional and I overlooked a not so obvious switch - why?
The obvious switch in src/CMakeLists.txt tells me otherwise: