$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
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