From: David Abrahams (dave_at_[hidden])
Date: 2007-03-19 11:52:29
on Fri Mar 02 2007, Nicola Musatti <Nicola.Musatti-AT-gmail.com> wrote:
> 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). Then
you could set up the compiler path as a variable and write a small
rule there that accesses it.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
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