Boost logo

Boost-Build :

Subject: [Boost-build] Depending on an exe from two files
From: Julio M. Merino Vidal (jmmv84_at_[hidden])
Date: 2008-10-19 22:48:33


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?

Thank you.

1: https://svn.boost.org/svn/boost/sandbox/SOC/2006/process/trunk/libs/process/test/Jamfile.v2
2: http://www.boost.org/doc/tools/build/doc/html/bbv2/faq/s02.html

-- 
Julio M. Merino Vidal <jmmv84_at_[hidden]>

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