From: Deane Yang (deane_yang_at_[hidden])
Date: 2006-02-08 09:43:55
Vladimir Prus wrote:
> On Tuesday 07 February 2006 19:46, Deane Yang wrote:
>> Vladimir Prus wrote:
>>> I see two ways to solve the problem:
>>> 1. Automatically strip the suffix from main target name, when determining
>>> basename of generated targets. So, it's possible to use:
>>> foo main.first : main.src ;
>>> foo main.second : main.src ;
>>> and ".first"/".second" suffixes will be used only to resolve the
>>> ambiguity, they won't affect the names of generated targets.
>>> 2. Allow to explicitly specify the basename of the generated target via
>>> some feature, say, "<name>". So, user would have to write:
>>> foo main.first : main.src : <name>main ;
>>> foo main.second : main.src : <name>main ;
> Good, the first alternative is implemented and comitted. I'll update docs
>> Third comment: How hard would it be to implement both?
> Pretty easy, I think. But I'd rather not implement a feature until I know the
> use case for it. If you have one, speak out ;-)
Good point. I'll let you know if I run into a situation where the first
alternative doesn't work.
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