Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2006-11-03 10:06:26


I've got two versions of a library, and I want to choose which one to
link against. So, I created a feature to choose which one to link. It
works fine, except that libraries that don't depend on it are also built
twice (one of which is wxWidgets, so it takes quite a while). Here's
basically what I do:

feature libfoo : a b : propagated link-incompatible ;

lib unrelated : unrelated.c ;
lib bar
    : bar.c unrelated
    : <libfoo>a:<library>/foo_a
      <libfoo>b:<library>/foo_b
;

I then get something like ".../unrelated.lib" and
".../libfoo-b/.../unrelated.lib" which I know is unnecessary. Is there
a good way around this? I think I could do "unrelated/<libfoo>a", for
example, to get just one build of "unrelated". The problem is that I
have many libraries and executables that don't link against "foo" and
many that do, so I would have to change all of the jamfiles for all the
projects and remember to do it correctly in the future as well.

Thanks,

Phillip


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