Boost logo

Boost-Build :

Subject: Re: [Boost-build] add features to a build variant?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-07-02 16:05:05


AMDG

On 07/02/2015 01:23 PM, Steve Lorimer wrote:
> Is it possible to add features to an existing build variant?
>
> I know I can create a new variant
>
> variant super_release : release : <define>USE_ASM ;
>
>
> However, am I able to add features to release?
>

You can get this effect by adding global
conditional requirements:

import toolset ;
toolset.add-requirements <variant>release:<define>USE_ASM ;

It's usually better to add this at the project
or target level, though.

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