Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-03-09 09:00:33


On Wednesday 09 March 2005 16:47, Rene Rivera wrote:
> Vladimir Prus wrote:
> > Vladimir Prus wrote:
> >> install install-headers : [ glob CommonModules/*/*.h ]
> >>
> >> : <location>$(include-locate)
> >>
> >> <preserve-path>on
> >> ;
> >>
> >>Please let me know if this works for you.
> >
> > Oops, it does not. I've tested with
> >
> > install dist : a/b/c.h : ........ ;
> >
> > and it *does* work, but the example with 'glob' does not work yet because
> > 'glob' return absolute path names. I'll work on this.
>
> Had to deal with the same issue on BBv1. It uses
> "<tree-subdirs>$(BOOST_ROOT)" to tell the stage rule to remove that
> prefix from any source paths that have it.

I was about to make the 'glob' rule return relative paths, but hmm... nothing
can stop user from writing

install dist : $(BOOST_ROOT)/boost/any.hpp ;

where $(BOOST_ROOT) is an absolute path. In that case, we'd have to strip
$(BOOST_PATH) anyway, so seems I have to use the same logic as V1.

Thanks for pointing out!

- Volodya

 


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