Boost logo

Boost :

From: René Ferdinand Rivera Morell (grafikrobot_at_[hidden])
Date: 2022-12-12 14:58:46


On Mon, Dec 12, 2022 at 8:50 AM Mojca Miklavec via Boost
<boost_at_[hidden]> wrote:
>
> On Fri, 9 Dec 2022 at 09:57, Alexander Grund via Boost wrote:
> > Am 09.12.22 um 05:41 schrieb Mojca Miklavec via Boost:
> > >
> > > Boost is only usable to me when it contains CMake support and I cannot
> > > test the above tarballs which completely lack it.
> >
> > You need to install Boost with the official workflow (bootstrap and b2)
> > which will generate CMake config files consumeable via `find_package`
>
> The thing is ... is there an easy way to replace something like
>
> set(BOOST_VERSION_SOURCE 1.81.0.beta1)
> FetchContent_Declare(boost
> URL https://github.com/boostorg/boost/releases/download/boost-${BOOST_VERSION_SOURCE}/boost-${BOOST_VERSION_SOURCE}.tar.xz)
> FetchContent_MakeAvailable(boost)
>
> with the code that will run and compile bootstrap and b2 automatically
> and subsequently find the installed version, at least for some typical
> Linux and MSVC?
>
> (I assume that I should be able to come up with some overly complex
> code to achieve that, but I would really like to avoid going that
> way.)
> Asking every user to install a gazillion of dependencies is a support nightmare.
> Having boost (and many other dependencies) compile automatically as
> part of the build process (when dependencies are not already found on
> the system) is an extremely helpful lifesaver.

This is what package managers were invented to solve.

-- 
-- René Ferdinand Rivera Morell
-- Don't Assume Anything  -- No Supone Nada
-- Robot Dreams - http://robot-dreams.net

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