Boost logo

Boost-Build :

From: Ryan Gallagher (ryan.gallagher_at_[hidden])
Date: 2005-12-09 15:28:45


Vladimir Prus <ghost <at> cs.msu.su> writes:

>
> Hi Tyson,
>
> > Is there an easy way to make a library where the actual source is divided
> > in multiple sub directories?
>
<snip>
> Will the following code in "lib/Jamfile":
>
> lib your_lib : [ glob ../source1/*.cpp ] [ glob ../source2/*.cpp ] ;
>

Hi Vladimir,

Does this still have issues with clashing target names (at least on bbv2)?
Say source1 and source2 both have foo.cpp. When I was playing with this
before then I'd get an error from the build system because it stripped
off the relative part specified in the glob in doing the grist for the
target name.

I often organize my code similar to Tyson, and have found a fix but it
requires a slight modification of the build system. That's described here:
http://tinyurl.com/dbqyq. It's been a while since I played around
with bbv2 and I'm not an expert in it, so there may be a better solution.
I suspect the alias may do it, but it doesn't seem as ideal as the glob.

Cheers,

-Ryan


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