Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-09-18 03:58:01


On Saturday 16 September 2006 23:33, Phillip Seaver wrote:
> I ran into a problem with "use-project" and "project" recently where we
> have two versions of the same library. Here's basically what's done:
>
> libs build.jam:
>
> use-project /libx_v1 : libx_v1 ;
> use-project /libx_v2 : libx_v2 ;
>
>
> libs/libx_v1 build.jam:
>
> project libx_v1 : usage-requirements <include>. ;
> alias usage_requirements ;
>
>
> libs/libx_v2 build.jam:
>
> project libx_v1 : usage-requirements <include>. ;
>
>
> When I then referenced /libx_v1//usage_requirements in another project,
> I get the error message:
>
> error: Unable to find file or target named
> error: '/libx_v1//usage_requirements'
>
> If I fix the libs/libx_v2 build.jam to have "project libx_v2 ...", it
> starts working. So, that brings up two questions. 1) Shouldn't it be
> an error to have a project with the same name? 2) What relationship do
> the "use-project" and "project" names have?

At the moment, both use-project and project names add project names to a
global id->project mapping. With that in mind, defining two projects with the
same name should be an error.

On the other hand, we discussed an approach where project names are more
localized. I guess it would be better to just implement that. Create new
issue:

    https://zigzag.cs.msu.su:7813/boost.build/ticket/106

- Volodya

   

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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