Boost logo

Boost-Build :

Subject: Re: [Boost-build] Global headers across projects
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-14 15:38:24


AMDG

Alexander Sack wrote:
> alias common_headers : : : <include>h1_dir <include>h2_dir>;
>
> However I can't use this in my Jamroot's project definition as a
> requirement a la:
>
> project myproj
> : requirements common_headers
> ;
>

project myproj : requirements <source>common_headers ;

> constant some_headers : <include>blah blah etc.
>
> and then in
>
> lib/liba/Jamfile I would have:
>
> lib a : [ glob *.cc ] : <include>$(some_headers) ;
>
> If I do it this way, it seems to get the variable substitution wrong.
>

The problem is that path properties are interpreted relative
to the project that they are specified in. If you propagate
them as raw strings, it probably won't work. If you use
path-constant instead of constant, it should work.

path-constant some_headers : blah blah etc. ;

lib a : [ glob *.cc ] : <include>$(some_headers) ;

In Christ,
Steven Watanabe


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