Boost logo

Boost Users :

Subject: Re: [Boost-users] 1.66 changes in layout suffix seems to break cmake finder
From: Stephan Menzel (stephan.menzel_at_[hidden])
Date: 2018-01-08 16:08:42


On Mon, Jan 8, 2018 at 4:36 PM, Klaim - Joël Lamotte via Boost-users <
boost-users_at_[hidden]> wrote:

>
> Indeed CMake's FindBoost module needs to be uprgaded to be able to find
> libs with the new name layout (although it needs to be upgraded each time
> there is a boost release anyway...)
> I would recommand trying this patch which is imminent to be merged in
> CMake (just remplace your local FindBoost.cmake found in your CMake install
> dir): https://gitlab.kitware.com/cmake/cmake/merge_requests/1625
> Here is the related discussion: https://gitlab.kitware.com/cmake/cmake/
> issues/17575
>

Hello Joël,

thank you for your response. Patching CMake however seems a bit much,
especially the finder scripts. I was hoping for a less intrusive version. I
am reluctant because I maintain those projects over at least 5 different
architectures, some of which have older (3.4.x) CMake versions installed
and I can't even be sure they will work with a 3.10.x finder script. Sure,
I could manually build CMake there as well but it all seems so unnecessary,
given that it's just a strange file naming scheme change. I would not agree
that CMake needs upgrading for every new boost version. During the last
years I was going pretty well with the scheme I had and even old CMakes
could easily find it provided I used

set(Boost_ADDITIONAL_VERSIONS "1.66.0")

 ... which I think is what you are referring to.

I will try the patched finder though as a last resort.

Best regards...

Stephan



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net