|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-03-19 12:15:45
On Monday 19 March 2007 18:52, David Abrahams wrote:
>
> on Fri Mar 02 2007, Nicola Musatti <Nicola.Musatti-AT-gmail.com> wrote:
>
> > Hallo,
> > I'm trying to configure odbc32 as an external library in a Jamfile. This works
> > fine for those compilers which have it in their default library path; for
> > Borland I need to specify a location that is relative to where the compiler is
> > installed. Currently I have it hard-coded as follows:
> >
> > lib odbc
> > :
> > : <name>odbc32
> > <toolset>borland:<search>"C:/Program Files/Borland/CBuilder6/Lib/Psdk"
> > ;
> >
> > However I'd like to refer to the path that's specified in my user-config.jam
> > file. Is that possible?
>
> IIRC there's a way to get your user-config.jam to be treated as a
> regular Boost.Build module (but I don't remember what it is).
There's no way -- user-config.jam is already treated exactly like
Jamfile, and Jamroot inherit things from user-config.jam.
Therefore, adding
path-constant WHATEVER : WHATEVER ;
in user-config.jam will allow one to write
$(WHATEVER)
in all Jamfiles everywhere.
- 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