From: i_krustev (i_krustev_at_[hidden])
Date: 2005-03-23 10:31:25


Hi,

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?

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) ;