Boost logo

Boost-Build :

Subject: Re: [Boost-build] [run] propagate (usage)requirements to dependent targets
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-10-10 10:12:35


AMDG

On 10/10/2016 03:55 AM, Raffi Enficiaud wrote:
> Hi all again,
>
> I am still exploring a bit boost.build, so please have some patience
> with me ...
>
> I have a target to which I just added requirements and usage requirements:
>
> exe smoke-ts-static : smoke-ts/basic-smoke-test.cpp
> ../build//boost_unit_test_framework/<link>static
> : $(requirements_datasets)
> :
> : $(requirements_datasets) ; # usage requirements
>
> where
>
> requirements_datasets = [ requires cxx11_decltype cxx11_hdr_random
> cxx11_hdr_tuple cxx11_hdr_initializer_list cxx11_variadic_macros
> cxx11_trailing_result_types cxx11_template_aliases ] ;
>
> <snip>
>
> [snip]
>
> I thought that usage-requirement will be propagated to the run rule.
> What am I doing wrong and how to propagate the requirements?
>

I'm pretty sure that requires doesn't work
in usage-requirements. In particular,
usage-requirements must be free features,
but config.requires uses <build>no which
is not a free feature.

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