Boost logo

Boost-Build :

Subject: Re: [Boost-build] Compile boost libs each one with different version number
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-05-26 08:31:39


AMDG

Christina Larocca wrote:
> if $(name) = boost_math_c99
> {
> local result = [ common.format-name
> <base> -$(BUILD_ID)
> <base> -$(BUILD_ID)
> <base> -$(BUILD_ID)
> : $(name) : $(type) : $(property-set) ] ;
> }
> else
> {
> local result = [ common.format-name
> <base> -$(BUILD_ID)
> <base> -$(BUILD_ID))
> : $(name) : $(type) : $(property-set) ] ;
> }

I should have noticed this earlier. result goes out of scope too
soon. Try

local result ;
if ...
{
    result = ...
}
else
{
    result = ...
}

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