From: David Abrahams (dave_at_[hidden])
Date: 2004-12-23 13:30:41
TEMPLIE Cédric wrote:
> Robert Ramey wrote:
>> in my test Jamfile I would like something like:
>> if being built for static library
>> while if being built for dynamic runtime
>> It is not at all clear to me how to accomplish this. It looks to me that run
>> (and other build commands) build for all the combinations of
>> targets/variants specified.
>> Robert Ramey
> Have you tried
> in the requirements of your build ?
> The line mean that if we are linking statically, then define BOOST_DYN=1.
That's BBv2 syntax; Robert is using BBv1.
Robert, the way to handle this is with property rules:
rule serialization-extras ( toolset variant : properties * )
if <target-type>dll in $(properties)
properties += <define>BOOST_DYN=1
return $(properties) ;
Now add "serialization-extras" to your target's requirements.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
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