Skip to content

Commit

Permalink
Fix cmake build of mosquitto_ctrl.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Nov 17, 2020
1 parent 91584a9 commit edd74cc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/mosquitto_ctrl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ if (WITH_TLS AND CJSON_FOUND)
else()
target_link_libraries(mosquitto_ctrl libmosquitto)
endif()

if (UNIX)
if (APPLE)
target_link_libraries(mosquitto_ctrl dl)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
#
elseif (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
#
elseif(QNX)
#
else(APPLE)
target_link_libraries(mosquitto_ctrl dl)
endif (APPLE)
endif (UNIX)

target_link_libraries(mosquitto_ctrl ${OPENSSL_LIBRARIES} ${CJSON_LIBRARIES})

install(TARGETS mosquitto_ctrl RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
Expand Down

0 comments on commit edd74cc

Please sign in to comment.