Boost logo

Boost-Build :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2007-10-17 10:29:34


Vladimir Prus <ghost <at> cs.msu.su> writes:

>
> On Wednesday 17 October 2007 04:31:07 Gennadiy Rozental wrote:
> > Can I somehow specify usage requirements for header?
> >
> > Specifically I am interrested in <toolset>msvc:<asynch-exceptions>on for
all
> > boost/test/included headers. I see something close as an alias minimal. I
am
> > not sure this is it and how do I use it.
>
> Can you clarify what you want? It's not possible to detect that a source
> file will include some header and change things based on that, and it would
> be in fact somewhat strange to try that.

You know that Boost.Test requires async exceptions enabled bor msvc based
toolsets. For the library kind of targets we put it in project requirements
section. But the is usage variant which doesn't involve libraries. Instead
user include header from boost/test/included directory, which contains whole
source of the corresponding component. In this case async exception are
required as well.
  I do expect it to be difficult to deduce particular header usage (though I
noticesed that bjam actually does perform header analisys to deduce
dependency, isn't t?), but I found alias minimal in Boost.Test Jamfile.
minimal is also header only component of Boost.Test. Can I do similar with
other headers from included directory? At best it shouldn't require users to
include some fake dependecies in their Jamfiles, but any solution may be
considered.

Gennadiy


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