|
Boost Users : |
Subject: Re: [Boost-users] Possible to put path to boost library somewhere else than Jamroot file?
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-07-08 09:14:42
s seelenluft wrote:
> On Fri, Jul 3, 2009 at 6:20 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:
>
>
>> The easiest solution is to put it in user-config.jam or site-config.jam.
>
>
> Thanks, can you help me with the syntax there, I had
>
> exe myname
> : myname.cpp
> : <include>.
> :<include>/usr/local/include/boost-1_39/
> ;
I don't think this is right. Per:
http://www.boost.org/boost-build2/doc/html/bbv2/advanced/targets.html
the syntax is:
rule-name (
main-target-name :
sources + :
requirements * :
default-build * :
usage-requirements * )
So you should have:
exe myname
: myname.cpp
: <include>.
<include>/usr/local/include/boost-1_39/
;
>
> in my Jamroot file. Putting just
>
> <include>/usr/local/include/boost-1_39/
>
> (with or without a trailing semicolon) just below my 'darwin ;' entry in
> user-config.jam does not work.
You need to use project requirements in user-config.jam, see:
http://www.boost.org/boost-build2/doc/html/bbv2/advanced/projects.html
For example:
project user-config : requirements <include>/usr/local/include/boost-1_39 ;
- Volodya
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net