|
Boost-Build : |
Subject: Re: [Boost-build] Depending on an exe from two files
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-10-20 00:30:19
On Monday 20 October 2008 06:48:33 Julio M. Merino Vidal wrote:
> Hello,
>
> In the Boost.Process tests [1], I create a helper executable that I
> need to depend on from multiple test targets. This used to work in
> the past but doesn't any more. (Haven't used this code for a while,
> so I don't know for how long it has been broken. Some change in
> Boost.Build modified the way the dependencies work, I think.)
>
> The problem is that Boost.Build thinks that the target exe target is
> duplicate. I've seen there is a related FAQ question in the
> documentation [2], but as I understand it, it does not apply to my use
> case. I need to depend on the exe, but the tests themselves do not
> (or rather, should not, to avoid useless rebuilds) care about how the
> exe file was built in itself.
>
> Is it there any way to avoid this problem and reuse the same exe build
> for all the other targets that need it? Note that, even if the tests
> have different build options (e.g. library dependencies), this does
> not change how the exe itself is built. I guess this can be applied
> to any case in which you need to depend on the resulting exe, but, as
> far as I have seen, this use case does not appear in any other Boost
> library.
>
> If this is not possible, which is the best workaround?
Can you provide the exact error you get, a small project reproducing this
problem (or unambiguous instructions how to reproduce this from SVN state),
and output of "bjam --version".
- Volodya
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