bjam - several projects and ALL_LOCATE_TARGET
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? BTW it would be handy to use the "project-root" directive for this reason: --- C:\src\my_first_project\Jamfile --- project-root my_projects/first ; --- The specified path is ment as relative to the ALL_LOCATE_TARGET. Thanks and regards, w
"Vaclav Vesely"
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
participants (2)
-
David Abrahams
-
Vaclav Vesely