|
Boost-Build : |
From: Michael Caisse (boost_at_[hidden])
Date: 2007-09-10 02:51:39
Tim St. Clair wrote:
> Folks -
>
> I'm tinking with bjam, and I have a question regarding setting
> boost as a pre-built dep. Currently I'm referencing boost directly,
> so when I type "bjam -a" it will rebuild the boost libraries.
>
> Is there a way to reference the *prebuilt* boost libraries I would
> like to link "cleanly", or to phrase it better, "What is the
> recommended practice for linking boost as a prebuilt library?".
>
>
I don't know about *recommended* but this is what I do for my own
stuff.
~~~~~~~~~~~~~~~~~~~~~~~ Jamroot snippet ~~~~~~~~~~~~~~~~~~~~~~~~
use-project /vendor/boost : library/vendor/boost/build ;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~ library/vendor/boost/build/Jamfile snippet ~~~~~~~~~~
alias latest
:
:
:
: <include>../$(LATEST_RELEASE)
<library-path>../$(LATEST_RELEASE)/stage/lib
;
alias latest_header_only
:
:
:
: <include>../$(LATEST_RELEASE)
;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~ snippet from Jamfile of program using boost ~~~~~~~~~
exe myexe
: [ glob src/*.cpp ]
/vendor/boost//latest
;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I hope you find it useful.
-- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.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