Boost logo

Boost :

Subject: Re: [boost] How to specify Boost headers location properly
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2010-03-10 19:47:08


Steven Watanabe wrote:
> Mateusz Loskot wrote:
>> For 1st example for the case 1),
>> in trunk/libs/accumulators/example/Jamfile.v2, Boost headers are
>> located by relative path and mysterious $(BOOST_ROOT)
>>
>> exe example
>> :
>> main.cpp
>> :
>> <include>../../..
>> <include>$(BOOST_ROOT)
>> ;
>>
>>
>
> <include>$(BOOST_ROOT) can be replaced with <dependency>/boost//headers

Yet another option I've just learned, but...

What is the difference between using headers-only library by specifying
this requirement using <source> and <dependency>?

The manual says:

"(...)a dependency on the target (...) (so it will be brought up-to-date
whenever the target being declared is). The dependency is not used in
any other way."

What does bringing up-to-date mean for headers-only?
Also, the "not used in any other way" suggests to me that it does not
implicitly update <include> directories.

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk