|
Boost-Build : |
Subject: Re: [Boost-build] [run] propagate (usage)requirements to dependent targets
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-10-10 10:51:07
AMDG
On 10/10/2016 08:31 AM, Raffi Enficiaud wrote:
> Le 10/10/16 à 16:12, Steven Watanabe a écrit :
>>
>> 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?
>>>
>>
>><snip>
> Sorry for the basic mistakes I am doing, but how would you do what I
> want to do? As you can see, it is not like I am not trying :)
>
You'll need to use $(requirements_dataset)
on every target that needs it, including
the alias.
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