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?

Thanks,

Phillip


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