Boost logo

Boost-Build :

From: Matthew Herrmann (matthew.herrmann_at_[hidden])
Date: 2006-05-02 20:24:49

Hi All,

I'd like to set up a facility to reference different versions of libraries in
a concise manner.


exe myapp
   : [ glob myapp/*.cpp ]
   : utilities-1-0-0

lib utilities-1-0-0
   : : : : <include>/usr/local/include/utilities-1-0-0

lib utilities-1-0-2
   : : : : <include>/usr/local/include/utilities-1-0-2

While I could get the above approach to work, my Jamroot will quickly
accumulate every released version of the utilities library. I'd like to be
able to pass a version parameter to the library when referring to it, which
it could interpret as a string.

I'm not sure what syntax I could use (hence the question), but hopefully this
air code explains my intention:

exe myapp
   : [ glob myapp/*.cpp ]
   : utilities<version>1-0-0

lib utilities
   : : : : <include>/usr/local/include/utilities-$(version)

Is there such a means available? Or a "right way?" to achieve this that I've

Many thanks in advance,

Matthew Herrmann
Vice President, Software Architecture
Zomojo Pty Ltd

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