Boost logo

Boost :

From: Christian Mazakas (christian.mazakas_at_[hidden])
Date: 2025-03-25 19:55:28


On Tue, Mar 25, 2025 at 10:25 AM Georg Gast via Boost <boost_at_[hidden]>
wrote:

> Hi Boost,
>
> i read here [1] that boost::mqtt5 needs boost 1.82.0 but it is
> published with 1.88.0 Beta1
>
> How to use boost::mqtt5 with boost 1.82.0?
>

Looking at their CMakeLists.txt file here: mqtt5/CMakeLists.txt at develop
· boostorg/mqtt5
<https://github.com/boostorg/mqtt5/blob/develop/CMakeLists.txt>

It seems like the easiest thing to do is just clone it into the Boost tree
and treat it like any other
library from there. Unless I'm misreading, it doesn't seem like this
library is meant to be installed
by CMake on its own. It only has two modes: I'm a boost.mqtt developer or
I'm going to install this
via BoostRoot.cmake.

Haven't tested it locally but if you clone it into a 1.82 tree, you should
be able to:

    cmake -DBOOST_INCLUDE_LIBRARIES=mqtt5 -DCMAKE_INSTALL_PREFIX=_install
.. && cmake --build . --target install -j20

- Christian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk