Boost logo

Boost-Build :

Subject: [Boost-build] <name> property in <conditional> rule
From: Gaydov Victor (victor.gaydov_at_[hidden])
Date: 2009-08-31 09:23:04


i want to write something like:

lib a : : <conditional>@config-lib1 ;
rule config-lib1 ( props * )
{
    return <name>lib1_2.5 ;
}

but definition of the 'lib' rule contains this code:

if ! $(sources) && ! <name> in $(requirements:G)
       && ! <file> in $(requirements:G)
{
    r += <name>$(name) ;
}

so after running config-lib1 there are two <name> properties
and i get extra argument error in rule
object(searched-lib-target)@154.__init__ ( name : project : shared ? :
search * : action )
(2 names are passed)

is it possible to avoid this ?
if not, could you or i patch rule definition and add check for example
for <name-will-be-in-conditional> feature ?


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