From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2007-10-18 08:47:00
"Vladimir Prus" <ghost_at_[hidden]> wrote in message
> Gennadiy Rozental wrote:
>> "Gennadiy Rozental" <rogeeff_at_[hidden]> wrote in message
>>> 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
>>>> > boost/test/included headers. I see something close as an alias
>>>> > minimal. I
>>>> > 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
>>>> file will include some header and change things based on that, and it
>>>> be in fact somewhat strange to try that.
>>> You know that Boost.Test requires async exceptions enabled bor msvc
>>> toolsets. For the library kind of targets we put it in project
>>> 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
>>> 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
>> Please take a look here:
>> You can see that async exceptions are not enabled. And they have to be.
>> How can it be done?
> If the test in question uses Boost.Test headers, but no library, and
> to use whatever compiler settings are recommended by Boost.Test, that
> test should include Boost.Test's 'minimal' target among its sources.
But this test most probably has nothing to do with minimal testing
framework. What I am looking for is similat targets for other "inlined"
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