$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Zbynek Winkler (zwin_at_[hidden])
Date: 2004-01-12 05:13:33
Hello.
I was trying to extend my project with a single 'configuration Jamfile'
where the users could set their preferences. I tried using variables in
it. The problem is that I do not know the scope of the variables.
I've created user-settings.jam and in project-root.jam I put 'import
user-settings.jam'. A variable set in user-settings.jam was only visible
in the root Jamfile and nowhere else. For now I circumvented the problem
by using 'constant' rule in project-root.jam but I could not use it in
the user-settings.jam.
So - what is the scope of a variable set in a file imported into
project-root.jam? How do I make a global variable?
Zbynek