Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2002-09-02 09:22:40


From: "Patrick Frants" <gclbb-jamboost_at_[hidden]>

> "David Abrahams" <dave_at_[hidden]> wrote in
> news:11d901c2527f$21add5c0$1c86db41_at_[hidden]:
>
> > There is a way around this, though: first define a rule which adds
> > $(SUBDIR)/IncludeDir to a set of build properties:
> >
> > rule add_include_dir ( build-properties * )
> > {
> > return $(build-properties) $(SUBDIR)/IncludeDir
> > }
> >
> > Then add "add_include_dir" to your template's requirements section.
>
> Ok, I would like to add several directories under $(SUBDIR). How can I
add a
> string parameter to add_include_dir and concatenate it with $(SUBDIR)?

I don't know a way to do that.

Well, I guess you could add a made-up property like
<add_include_dir_param>some-string and use that to detect the string
parameter. It's a hack but I think it'd work.

-----------------------------------------------------------
David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com

 


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