mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-03-23 08:23:26 +08:00
Fix cmake linking of libwebsockets static/shared
This commit is contained in:
@@ -8,6 +8,7 @@ Broker:
|
||||
Build:
|
||||
- Build fixes for OpenBSD. Closes #3474.
|
||||
- Add missing libedit to docker builds. Closes #3476.
|
||||
- Fix static/shared linking of libwebsockets under cmake.
|
||||
|
||||
|
||||
2.1.1 - 2026-02-04
|
||||
|
||||
@@ -248,12 +248,12 @@ if(WITH_WEBSOCKETS)
|
||||
"${mosquitto_SOURCE_DIR}/deps/picohttpparser")
|
||||
else()
|
||||
if(STATIC_WEBSOCKETS)
|
||||
target_link_libraries(mosquitto PRIVATE websockets_static)
|
||||
target_link_libraries(mosquitto PRIVATE websockets)
|
||||
if(WIN32)
|
||||
target_link_libraries(mosquitto PRIVATE iphlpapi)
|
||||
endif()
|
||||
else(STATIC_WEBSOCKETS)
|
||||
target_link_libraries(mosquitto PRIVATE websockets)
|
||||
target_link_libraries(mosquitto PRIVATE websockets_shared)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user