Boost logo

Boost :

Subject: Re: [boost] [cmake] Minimum viable cmakeification for Boost
From: P F (pfultz2_at_[hidden])
Date: 2017-06-20 13:44:16


> On Jun 20, 2017, at 7:16 AM, Peter Dimov via Boost <boost_at_[hidden]> wrote:
>
> "P F" wrote:
>
>> So I setup a repo to build and install Boost.System as well, here:
>>
>> https://github.com/pfultz2/boost-cmake-demo
>
> You're listing the dependencies three times in three separate locations, which will be error-prone and is harder to automate (unless the whole CMakeLists.txt is generated with boostdep.)

I agree, which is why I wrote BCM to take care of this part. Especially, since without it, there would be another list of dependencies to support pkgconfig.

>
> You should be able to have dependencies.cmake with
>
> some_macro(dep1)
> some_macro(dep2)
>
> (or some_function) and then use that appropriately in CMakeLists.

Ideally, I can just create a list with dependencies and then iterate over them. I’ll try to add that to the repo.


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