|
Boost-Build : |
Subject: Re: [Boost-build] issue with <link>
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-05 13:10:16
AMDG
Gennadiy Rozental wrote:
> Steven Watanabe <watanabesj <at> gmail.com> writes:
>
>> lib boost_unit_test_framework
>> : #sources
>> $(UTF_SOURCES).cpp
>> : # requirements
>> : # default-build
>> : # usage-requirements
>> <link>shared:<define>BOOST_TEST_DYN_LINK=1
>> ;
>>
>
> Can I share this somehow in between multiple lib targets?
>
You could define a variable.
LIB_USAGE_REQUIREMENTS = <link>shared:<define>BOOST_TEST_DYN_LINK=1 ;
lib ... : $(LIB_USAGE_REQUIREMENTS) ;
The thing is that the mechanism for sharing usage-requirements is
per-project and
you don't want this to applied for all the targets in the project.
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