|
Boost-Build : |
Subject: Re: [Boost-build] [build] Linking conditionally depending of a compiler version
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-05-12 20:18:47
AMDG
On 05/12/2012 06:45 AM, Vicente J. Botet Escriba wrote:
> <snip>
> if ! <toolset>vacpp in $(properties)
> {
> result += <library>/boost/chrono//boost_chrono ;
> }
>
> Unfortunately/fortunately more recent versions of the compiler supports
> in an acceptable way Boost.Chrono.
>
> If I do always
>
> result += <library>/boost/chrono//boost_chrono ;
>
> No test will work for vacpp 10.1, which is not desirable.
>
> I would like to don't link with Boost.Chrono only for the failing
> version. Is there a way to achieve this with Boost.Build?
> How to know the version of the compiler is a Jamfile?
>
Test for <toolset-vacpp:version>10.1 (or
whatever the version you need is).
In Christ,
Steven Watanabe
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