Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2003-04-29 20:42:36


"Vaclav Vesely" <yg-boost-users_at_[hidden]> writes:

> Hi,
>
> I would like to ask for help with using bjam. I want to have more project
> directory trees, for example:
>
> C:\src\boost
> C:\src\my_projects\first
> C:\src\my_projects\first
>
> and I want to compile binaries to separate directories:
>
> C:\build\boost
> C:\build\my_projects\first
> C:\build\my_projects\second
>
> So I have to set different values of the ALL_LOCATE_TARGET environment
> variable for each project. It's unconfortable to set that value each time I
> want to inovoke the bjam, so I want to set it in the Jamfile of each
> project. I mean somethin like this:
>
> --- C:\src\my_first_project\Jamfile ---
> project-root ;
> ALL_LOCATE_TARGET = C:\build\my_projects\first
> ---
>
> Of course, this doesn't work. Can someone propose the solustion?

Stick a boost-build.jam which contains the ALL_LOCATE_TARGET setting
and, of course, the invocation:

      boost-build <path-to-$BOOST_ROOT/boost/tools/build> ;

at the root of each project.

HTH,

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net