From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-04-22 10:36:19
Daniel Schlyder wrote:
> I have the following files:
> Jamfile requires rules defined in build/foo.jam, which in turn requires rules
> defined in build/bar.jam. Currently, I'm import'ing both files in Jamrules, but
> I'd like to instead import build/bar.jam in build/foo.jam, if it's possible to
> do so only specifying path relative to build/foo.jam. I can't do
> import build/bar.jam
> because that would break if I decide to use the build/* files in another project
> where I don't put them in a directory named "build" under project-root.
> Is it possible?
There are two ways...
1. If you add the build subdir to BOOST_BUILD_PATH you can just do:
import bar ;
2. You can use relative paths, but only if you use it in a Jamfile:
import ./bar ;
-- -- grafik
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