From 6a0d4652248891c365a752e42fa92483c186693b Mon Sep 17 00:00:00 2001 From: CIPop Date: Fri, 4 Aug 2023 02:19:52 +0000 Subject: [PATCH] For backward compatibility with the previous client, the correct structures must be used (MQTTV5 must be defined). --- MQTTPacket/test/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MQTTPacket/test/CMakeLists.txt b/MQTTPacket/test/CMakeLists.txt index 6e51141b..f6ce03ff 100644 --- a/MQTTPacket/test/CMakeLists.txt +++ b/MQTTPacket/test/CMakeLists.txt @@ -47,6 +47,9 @@ ADD_EXECUTABLE( # warning: ‘ftime’ is deprecated [-Wdeprecated-declarations] target_compile_options(test15 PRIVATE -Wno-deprecated-declarations) +# To allow existing MQTTv3 applications using the MQTTv5 library, MQTTV5 structures must be used. +target_compile_definitions(test15 PRIVATE MQTTV5) + TARGET_LINK_LIBRARIES( test15 paho-embed-mqtt5c