Boost logo

Boost-Build :

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

Vladimir Prus <ghost <at>> writes:

> Hi Tyson,
> > Is there an easy way to make a library where the actual source is divided
> > in multiple sub directories?
> 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: 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.



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