Boost logo

Boost :

Subject: Re: [boost] Cmake
From: Peter Dimov (lists_at_[hidden])
Date: 2017-06-24 17:05:03


P F wrote:
> https://github.com/pfultz2/boost-cmake-demo/tree/bcm-demo
>
> The library for Boost.System is just:
>
> bcm_boost_package(system
> VERSION 1.64
> SOURCES
> src/error_code.cpp
> DEPENDS
> assert
> config
> core
> predef
> )

This certainly looks cleaner. It needs to distinguish between public and
private dependencies but that's easy to fix. And of course there's the
question who will maintain the version and the dependency list.

> And this works for both `add_subdirectory` build and standalone builds.

Provided that the user has installed BCM, I presume? Because otherwise
find_package(BCM) won't work.


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