Re: [boost] [Boost-build] Using Environment Variables in Boost.BuildJamRoot file

Hi Lawrence ! On Dienstag 29 Mai 2007, you wrote:
Thanks for the quick response. That was definitely helpful. One thing I noticed, after doing this, is that the environment variables are treated as case sensitive when using os.environ. While this makes sense in some contexts, it doesn't in the context of Windows, since Windows is a case insensitive OS. Is there any way to specify a case-insensitive match using os.environ?
I doubt this ;-)) (B)jam is definetely unix-centric...
Also, I got it working when putting it in my Jamroot. Now, if I want to put it in site-config.jam as you suggested, what other steps are there so that the Jamroot file can use the contents of site-config.jam. I tried putting the import os; and local BOOST_ROOT = [ os.environ BOOST_ROOT ] ; into the site-config file, but my Jamroot file was not able to see the variables. What I gathered from reading is that all jam files have their own namespaces. How do you "export" something into the global namespace then?
You only do have to follow the "recipies" link in my link. It is all document in the fine manual: http://boost.org/boost-build2/doc/html/bbv2/recipies/site-config.html I hope this helps ! Yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold@ivembh.de ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
participants (1)
-
Juergen Hunold