Boost logo

Boost-Build :

Subject: Re: [Boost-build] Referring to a project from outside a Boost tree
From: Edward Diener (eldiener_at_[hidden])
Date: 2011-06-02 14:29:16


On 6/2/2011 1:56 PM, Gevorg Voskanyan wrote:
> Edward Diener wrote:
>
>> For my sandbox library, tested from outside of a Boost tree, I wanted to try
>> use the unit test framework. I looked how Boost libraries others do this and
>> noticed a reference to the unit test framework as
>> '/boost/test//boost_unit_test_framework/<link>static'. But if I specify this
>>from outside a Boost tree, how do I tell Boost Build how to find this project ?
>>
>> For including header files I used the common technique of setting
>> $(BOOST_ROOT) to a Boost tree and then having project requirements of
>> '<include>.&&$(BOOST_ROOT)'. Is there a similar technique for having the Build
>> system find a Boost project in a Boost tree ?
>
> use-project /boost : $(BOOST_ROOT) ;
>
> should do the trick.

That worked nicely. Thanks !


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