|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-03-28 09:40:44
On Wednesday 23 March 2005 18:31, i_krustev wrote:
> I'm using constants defined via the 'constant' rule in my
> project-root.jam.
> I'd like to use list value in some of the constants, but it seams
> that the rule is so defined that does not allow list values.
>
> Is there any specific reason for this?
I don't think so, it just happened to be this way.
> The following patch worked for me, but I'm still wandering wether it
> is braking something else or not ...
>
> The version I'm using:
> bjam --version
> Boost.Build V2 (Milestone 10)
> Boost.Jam 03.01.10
>
> Please, advice!
>
> diff
> -ur ./build/project-roots.jam
> /usr/local/boost-build.v2/build/project-roots.jam ---
> ./build/project-roots.jam 2004-10-29 13:45:35.000000000 +0300 +++
> /usr/local/boost-build.v2/build/project-roots.jam 2005-03-23
> 17:08:18.573977362 +0200
> @@ -169,7 +169,7 @@
> # Accessor, add a constant.
> rule add-constant (
> name # Variable name of the constant.
> - : value # Value of the constant.
> + : value * # Value of the constant.
>
> : type ? # Optional type of value.
>
> )
> {
> @@ -313,7 +313,7 @@
> #
> rule constant (
> name # Variable name of the constant.
> - : value # Value of the constant.
> + : value * # Value of the constant.
> )
> {
> project-root add-constant $(name) : $(value) ;
Looks fine to me. I'll make this modification in CVS.
Thanks,
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