From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-08-16 02:02:27
> 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
No builtin facility yet. Maybe, you could file a feature request in our issue
Assuming you'd like this to work right now, you can fake this feature
yourself. The $boost_root/test/unused/project-root.jam creates a new main
target rule, which produces no target and only returns usage requirements.
By changing names, making body of 'construct' empty and removing
'compute-usage-requirements' method, you'll be able to get
'header-only-library' rule, which does what you'll want.
Of course, you might prefer to wait while proper interface is decided on and
implemented. It's up to you.
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