|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-04-02 03:18:40
On Saturday 31 March 2007 20:06, Dave Rahardja wrote:
> Hi group.
>
> Let's say I have two libraries, a.lib and b.lib, each with its own Jamfile,
> under a common Jamroot.
>
> I need a.lib to know about the header directory of b.lib, and vice versa.
> How do I do this?
I don't know what you mean by "know about the header directory". If you
want a.lib to be compiled with include path to b.lib, then I'd use:
lib a : .... : <include>../b/whatever ;
Normally, I recommend usage requirements:
lib b
: # sources
: # requirements
: # default build
: <include>whatever ;
lib a : b <some other sources> ;
However you say that a should use b's includes and b should
use a's includes. Such circular dependency between Boost.Build targets
is not allowed, therefore you'd have to use <include>whatever for
your a and b targets.
- Volodya
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