
"Vaclav Vesely" <yg-boost-users@m.gmane.org> 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