Skip to content

Commit

Permalink
Fix: Require libpaho for mqtt support
Browse files Browse the repository at this point in the history
MQTT support is required for openvas-scanner. It would be possible to
just not build the mqtt support in gvm-libs but in that case it would
be required to check in openvas-scanner if gvm-libs has mqtt support.
Therefore it is easier to always build gvm-libs with mqtt support.

Closes #694

(cherry picked from commit 7104b43)
  • Loading branch information
bjoernricks authored and mergify[bot] committed Jul 20, 2022
1 parent 942cb24 commit 03149d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ pkg_check_modules (REDIS REQUIRED hiredis>=0.10.1)
pkg_check_modules (LIBXML2 REQUIRED libxml-2.0>=2.0)

# for mqtt
# Optional for now because lib is currently not in debian buster stable.
find_library(LIBPAHO paho-mqtt3c)
message (STATUS "Looking for paho-mqtt3c ... ${LIBPAHO}")
if (NOT LIBPAHO)
message (STATUS "libpaho-mqtt3c is required for MQTTv5 support.")
message (SEND_ERROR "libpaho-mqtt3c is required for MQTTv5 support.")
else (LIBPAHO)
set (LIBPAHO_LDFLAGS "paho-mqtt3c")
add_definitions (-DHAVE_MQTT=1)
Expand Down

0 comments on commit 03149d7

Please sign in to comment.