Boost logo

Boost :

Subject: Re: [boost] [build] b2 headers don't work for sublibs
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-08-30 18:00:15


On Saturday 30 August 2014 14:39:31 Steven Watanabe wrote:
> AMDG
>
> On 08/30/2014 11:09 AM, Andrey Semashev wrote:
> > I'm trying to move some headers of Boost.MPL to a sublib Boost.MPL.Core.
> > I've reorganized the repository as follows:
> >
> > libs
> >
> > mpl
> >
> > book
> > core
> >
> > include
> >
> > boost <- here and below are core headers
> >
> > test
> > index.html
> >
> > <snip>
> >
> > The problem is when I run 'b2 headers' the command creates a symlink
> > boost/mpl pointing to libs/mpl/include/boost/mpl, which leaves out all
> > headers from libs/mpl/core/include/boost/mpl. How do I instruct
> > Boost.Build to create links to the core headers?
>
> Jamroot has this:
>
> local all-headers =
> [ MATCH .*libs/(.*)/include/boost : [ glob libs/*/include/boost ] ] ;
>
> which won't find the libs/mpl/core/include
> subdirectory.

Does it mean that sublibs are not supported or that this is a bug?

BTW, I can see the similar approach has been taken in Boost.Chrono, and its
stopwatches headers are also not linked into boost/chrono.


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