Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-02-26 02:51:07


Zbynek Winkler wrote:
> What is the prefered way to link with boost libraries? Let's say I have a
> project outside of the boost tree (with its own project-root.jam) and I
> want to use the unit_test_framework. Do I have to treat the library like
> any other prebuilt library (with the <name> and <search> stuff) or can I
> link to it in some 'smart' way (ie. using its Jamfile)? Thanks.
> Zbynek

Hi Zbynek,

here's what I use in my project:

use-project /boost/filesystem : $(POOL_DIR)/boost/libs/filesystem/build ;

And later

lib utils : utils.cpp debug.cpp
fs_helpers.cpp /boost/filesystem//boost_filesystem ;

While the directory mentioned by 'use-project' has both Jamfile and
Jamfile.v2, the latter is preferred by default.

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