Hi,
I'm trying to use glob to get a list of every file in a directory. When I use rule path.glob things work, but when I try to use the regular rule glob I get the following error:
~/boost-root/build/project.jam:321: in load-jamfile from module project
error: The value of the .current-project variable
error: has magically changed after loading a Jamfile.
error: This means some of the targets might be defined a the wrong project.
~/boost-root/build/project.jam:68: in load from module project
~/boost-root/build/project.jam:164: in project.find from module project
~/boost-root/build-system.jam:136: in load from module build-system
~/boost-root/kernel/modules.jam:259: in import from module modules
~/boost-root/kernel/bootstrap.jam:153: in boost-build from module
~/progs/esda-boost/boost-build.jam:1: in module scope from module
Here are two simple rules. The first one works, the second one causes the error:
rule generate-no-error
{
local test-var = [ path.glob . : * ] ;
echo $(test-var) ;
}
rule generate-error
{
local test-var = [ glob * ] ;
echo $(test-var) ;
}
When I use the generate-error rule I see all my files printed. If I move the glob code outside of the rule I don't see the error. If I exit after the echo I also don't see the error.
Here is my version of bjam:
-> bjam --version
Boost.Build V2 (Milestone 10)
Boost.Jam 03.1.13
Any help would be greatly appreciated.
Thanks,
Ashley