Boost logo

Boost-Build :

Subject: Re: [Boost-build] bjam --boost=/path/to/boost
From: Edward Diener (eldiener_at_[hidden])
Date: 2010-12-17 15:27:21


On 12/17/2010 3:12 PM, Steven Watanabe wrote:
> AMDG
>
> On 12/17/2010 12:00 PM, Edward Diener wrote:
>> I had entered a suggestion in Trac that the --boost option be
>> documented only to have the suggestion closed with the comment:
>>
>> "There is no such option for Boost.Build. It only works if you're
>> using boost-build.jam from the sandbox, or you have some other code to
>> handle it."
>>
>> Would somebody please explain to me how the bjam "--boost" option is
>> not an option since the documentation clearly states that options
>> begin with a double underscore.
>
> That doesn't mean that Boost.Build handles everything beginning with --xxx.
> Any Jam code can access ARGV to handle extra options. Boost.Build
> just ignores any options that it doesn't recognize.

I did not realize that. Thanks !

>
>> Also could someone explain to me how an option depends on a jam file
>> to handle it, else it is not an option. Thanks !
>
>
> Sandbox boost-build.jam has [ MATCH --boost=(.*) : $(ARGV) ].
> Inside a module, you would need to use [ modules.peek : ARGV ].

Yes, I see it.


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