Boost logo

Boost-Build :

Subject: Re: [Boost-build] right way to use boost in own project
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-05-21 06:18:45


On Thursday 21 May 2009 13:50:49 Anatoly Shirokov wrote:
> Good day time!
>
> I would like to use the boost libraries in my project based on the boost
> build system. What is right way to hide details of library naming
> conversion (for example, libboost-regex-vc71-mt-d-1_38) from developers.
>
> I saw an example from usage manual:
>
> project
> : requirements <library>/boost/filesystem//fs
> ;
>
> It is right way, but where and how can I describe the boost symbol
> (use-project, lib, alias or so on)? Of cause, my Jamroot and Boost
> Jamroot have different locations.
>
> Thanks in advance for any comments, suggestions, examples.

If you have Boost source tree, you can add this to your project:

        use-project /boost : <path-to-boost-source-tree> ;

Otherwise, take a look at contrib/boost.jam -- it has comments
about usage.

HTH,
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