Doh! Thank you.
> -----Original Message-----
> From: boost-build-bounces lists.boost.org
> [mailto:boost-build-bounces lists.boost.org] On Behalf
Of
> Vladimir Prus
> Sent: Tuesday, April 03, 2007 1:56 AM
> To: boost-build lists.boost.org
> Subject: Re: [Boost-build] glob from the location of
the Jamfile
>
> On Tuesday 03 April 2007 10:17, Dave Rahardja wrote:
> > How come path.glob works from the path of the
Jamfile that
> is used from the
> > command line, instead of from the path of the
Jamfile it is in?
>
> Because path.glob works from the current directory,
which is
> the directory
> where you invoke bjam. That's reasonable, because
path.glob
> is low-level
> feature.
>
> You can use 'glob' rule (unqualified), in Jamfile
context, to glob
> relatively to Jamfile. Please see:
>
> http://boost.org/boost-build2/doc/html/bbv2/refe
rence/rules.html
>
> > import path : glob ;
>
> Just remove this line....
>
> >
> > local SOURCE_DIR = source ;
> > local SOURCES = [ glob SOURCE_DIR : *.c *.cpp ] ;
>
> and use
>
> [ glob *.c *cpp ]
>
> - Volodya
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
a>
>
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
a>
|