Subject: Re: [Boost-build] Manipulating requirements based on a program's return value
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-05-24 17:14:26
On 05/24/2016 02:59 PM, Edward Diener wrote:
> I am looking for a way in Boost Build that I can create a conditional
> requirement based on whether a particular program I run returns a
> particular value. In other words, instead of a conditional requirement
> I could have a conditional requirement like:
> Of course I am making up syntax that has nothing to do with Boost build
> but the gist of my desire is to be able to set a conditional requirement
> based on a program's return value when passed some specific input
> It seems as if this sort of thing should be possible in Boost Build but
> I have not figured out how to achieve it given my knowledge of Boost
> Build. Are there any facilities for doing such a thing in Boost Build ?
> If there are, any pointers would be helpful.
Try configure.check-target-builds. It's mostly
used to check compiles, but it can also be used
for an arbitrary target.
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