Subject: [Boost-build] Alternate versions of a library
From: Phillip Seaver (phil_at_[hidden])
Date: 2015-12-02 10:20:16
I have a project with 2 libraries: the top-level one (A) and two
implementations of the same API (B & C). One of the implementations (C)
can only be used in certain configurations. I'd like it to be the
default for those configurations, but be able to choose to use B instead
in some cases.
Basically, I want to be able to decide between the implementations B & C
for a given executable. Other libraries use this project, so I'd like
them to be able to include it in their sources without worrying about
whether it will use B or C when linking.
I tried alternative libraries with the same name, and it complained
about different default builds. I tried <conditional> rules, but I was
getting "Duplicate name of actual target" errors.
I can create a dummy set of projects if that would help, but I thought
I'd go ahead and put the question out there.
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