Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2006-09-16 15:33:42

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?



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at