|
Boost-Build : |
From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-08-27 11:08:09
[2002-08-27] Patrick Frants wrote:
>Hi,
>
>I tried using $(SUBDIR) in templates, but get very strange paths out of it.
>
>Using $(SUBDIR)/.. in a template in c:/project/exe/Jamfile
>
>1. Executed from c:/project/ results in Server/Server
>2. Executed from c:/project/exe results in ..
>
>I think the second result is ok, but the first is incorrect or at least I
>did not expect it :-).
>
>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.
-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq - Grafik666_at_AIM - Grafik_at_[hidden]
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