Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-11-25 12:50:00


On Thursday 16 November 2006 16:16, Michael Thomas Zehender wrote:

[CC for convenience, please reply to the list]

> project test2
>
> : requirements <include>src
>
> ;
>
> SOURCE_DIRS =
> src
> ;
>
> SOURCES =
> [ GLOB $(SOURCE_DIRS) : *.cpp *.c ]
> ;
>
> lib TEST2 : $(SOURCES) : : : <include>src ;

If you're building from <root>/test1, the above glob tries to find sources in
<root>/test1/src/ -- not <root>/test2/src. Is this desired behaviour?
If not, you should be using

      [ glob src/*.cpp src/*.c ]

because 'glob' rule operated relatively to Jamfile.

I suspect this is the cause of your problems, if not -- I'd need archived
project that reproduces the problem.

- 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