Boost logo

Boost-Build :

Subject: Re: [Boost-build] Replacement for --preserve-test-targets option
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2009-01-21 15:16:00


On Wed, 21 Jan 2009, Vladimir Prus wrote:

> On Wednesday 21 January 2009 21:58:48 Jeremiah Willcock wrote:
>> On Wed, 21 Jan 2009, Vladimir Prus wrote:
>>
>>> On Wednesday 21 January 2009 19:35:19 Jeremiah Willcock wrote:
>>>> I notice from
>>>> <URL:http://www.nabble.com/Idiom-for-running-tests-using-(non-test)-target--td20135471.html>
>>>> that the --preserve-test-targets command line option to bjam (mentioned in
>>>> the documentation) has been removed and replaced by a feature settable
>>>> from the Jamfile. Is there still a way to set that flag from the command
>>>> line? Trying the original command line option does not work.
>>>
>>> Any feature can be requested on the command line. Did you try
>>>
>>> bjam preserve-test-targets=on
>>
>> No, I hadn't. I tried to look for documentation on how to turn features
>> on using the command line, and was not able to find that out.
>
> Does:
>
> http://www.boost.org/boost-build2/doc/html/bbv2/advanced/invocation.html
>
> fail to explain this, or is "Invocation" section in TOC fails to suggest it
> will tell how to specify things on the command line? Do you have any ideas
> how to make this more discoverable?

I looked at the page you sent; the part about features is under the
"properties" heading. The feature you mentioned is not listed on either
that page of the "Builtin features" link off that page. I had searched
for things like "boost build set feature on command line" (the link you
sent is the third result, but the others don't say anything about setting
features on the command line, only in Jamfiles). I don't think it would
be obvious from the link how to set features (or that
preserve-test-targets is a feature at all, or what its possible values
are). A brief skim of the Google results (like I did to try to answer my
question originally) would not have shown that the link you gave me would
be useful. Thank you for showing me that page, though.

-- Jeremiah Willcock


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