Boost logo

Boost-Build :

Subject: Re: [Boost-build] Configuring the include path for a toolset
From: Holger Joukl (Holger.Joukl_at_[hidden])
Date: 2011-08-05 03:24:18


Hi,

> I'd like to specify an include path to be used by the compiler. I
> tried to use:
>        <compileflags>-I...
> where "-I" specifies an include directory, but "bjam" seems to
> ignore it and omit it from the compilation (all other compileflags
> are passed correctly).
>
> Is there a way to specify the include path as part of the toolset,
> so I don't need to specify it on each build command (using
"include=...")?

You can use <include> directives in your Jam file:

<include>/path/to/headers

IIRC you can also use it as a command line feature arg to bjam, like
include=-I/path/to/headers.

Holger

Landesbank Baden-Wuerttemberg
Anstalt des oeffentlichen Rechts
Hauptsitze: Stuttgart, Karlsruhe, Mannheim, Mainz
HRA 12704
Amtsgericht Stuttgart


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