Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-10-20 09:08:04


Vladimir Prus wrote:
> On Wednesday 20 October 2004 16:56, Toon Knapen wrote:
>
>>I would like that the user can specify the path (to the boost
>>installation for instance) in his user-config.jam. The only way to
>>propagate these 'usage-requirements' however from my user-config.jam to
>>my project's Jamfile is using a dummy library:
>
> ......
>
>>I'm sure there is a much more intelligent way ...
>
>
> I'm afraid not. I though that it's good to have some "global project" and
> inherit properties from it, but it never got implemented.

OK.
However using a reference to the dummy library does not work because the
library does not exist, I had only defined the target to propagate the
includes. So instead of making my project on /user-config//boostheaders,
I now just added /user-config in the sources and ... it works(see
example below).
Is this intended ?

And to use this trick for different groups of include libraries, could I
define multiple projects in my user-config.jam? I guess not but wanted
to ask to make sure.

<user-config.jam>
import project ;
project.initialize $(__name__) ;
project user-config
: usage-requirements
<include>/path/to/boost
;

# lib boostheaders ;
</user-config.jam>

<in the Jamfile in the root-dir of my projects>
lib mylib_which_includes_boost_headers
: foo.cpp bar.cpp
/user-config
# /user-config//boostheaders
;
</Jamfile>

 


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