From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-08-27 02:57:38
David Abrahams wrote:
> "peter_schoen1_web_de" <Peter.Schoen1_at_[hidden]> writes:
> G> Hi,
> > the boost.build-v2 manual explains how to define prebuilt targets and
> > the usage-requirements for these targets.
> > I have several header-only libs (like many boost libraries), and I
> > wonder how can I define the usage-requirements for such a lib?
> > This doesn't work:
> > lib aHeaderOnlyLib
> > : <include>include
> > ;
> > Very best wishes
> Yep, I'm having the same problem. I want to use some header-only
> libraries from boost. I'd have thought adding <uses>/boost to my
> requirements would do it, since the boost Jamfile.v2 says that the
> usage-requirements are "<include>."
In fact, immediately after I went online after replying Peter, I realized we
can support this in a simple way in V2.
alias aHeaderOnlyLib : : : : <include>include ;
Now, alias does not support usage requirements, but it's trivial to add. Any
objections to this approach?
W.r.t. projects: the 'usage-requirements' attribute on projects have effect
only on targets declarated in that project, so <use>/boost does not work.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk