Boost logo

Boost-Build :

Subject: Re: [Boost-build] adding tests conditional on compiler's C++11 support
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-09-28 15:18:54


AMDG

On 09/28/2016 12:34 PM, Stefan Seefeld wrote:
>
> what is the boost.build way to add a set of tests to my (Boost.Python)
> test suite only if the given compiler supports C++11 ? To break that
> down into two questions:
>
> * Is there a Boost.Build flag I can check for that indicates whether the
> current compiler supports C++11 ?
>
> * How can I conditionalize the adding of tests to my test suite based on
> that flag ?
>

Try using config.requires:
http://www.boost.org/libs/config/doc/html/boost_config/build_config.html

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