Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-12-10 04:25:35

On Friday 10 December 2004 01:51, David Abrahams wrote:
> It seems to me that this rule is confusingly implemented and
> under-documented.
> For example, the docs don't say this but paths are supplied in
> "portable" format while patterns are expected to be "native" format.
> How anyone can use this portably I don't understand.

It's pretty easy. Until few days ago, pattern could not include any directory
name, so there were no difference between 'native' and 'portable'. After all
'*.cpp' is the same in both formats.

Now, the pattern is allowed to include slashes, and I just use $(p:D) to
quickly get the part before the last slash. This should work both on NT and
Unix, and will break only on VMS.

> Also, there appears to be a special case for when a slash is detected in
> the pattern? Could that be described in the documentation? "do
> something more complex" isn't really adequate. If you're doing
> something "more complex" you really ought to tell us what it is.

I agree, this part was intended to be clarified, but I missed it later. I've
now added more resonable (I hope) comment.

- Volodya


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at