Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2002-09-02 07:44:31


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.

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

----- Original Message -----
From: "Patrick Frants" <gclbb-jamboost_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.build
To: <jamboost_at_[hidden]>
Sent: Monday, September 02, 2002 7:29 AM
Subject: [jamboost] Re: Using $(SUBDIR) in templates - 1 attachment

> Rene Rivera <grafik666_at_[hidden]> wrote in
> news:20020827110809-r01010800-ada791e9-0860-0108_at_12.100.89.43:
> >>My goal was to factor out our standard includes in templates. My first
> >>option was to declare these includes paths relative to the c:/project.
> >>I did not succeed at that so I resorted to paths relative to the
> >>executable directories, which are always directly under c:/project.
> >
> > I might need a more concrete example to answer this one definately. But
> > maybe it's the SUBDIR evaluation location. Variables in the template
> > are going to get evaluated where the template was declared not where
> > it's used.
>
> Ok, I put together and attached a simple example. Notice that the include
> directory $(SUBDIR)/IncludeDir does not show up on the commandline when
> running bjam -d2.
>
> Patrick
>
> --
> Patrick Frants
> Senior Software Engineer
> Quintiq
> Goudsbloemvallei 12-28
> P.O.Box 264
> 5201 AG 's-Hertogenbosch
> The Netherlands
>
> Tel: +31 (0)73 691 07 39
> Fax: +31 (0)73 691 07 54
>
>

---------------------------------------------------------------------------
-----

>
>
>
>
>
> To unsubscribe from this group, send an email to:
> jamboost-unsubscribe_at_[hidden]
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>

 


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