Subject: [Boost-build] Avoid site-config.jam and use-config.jam
From: Dmitry Timoshenko (dimentiy2k_at_[hidden])
Date: 2011-06-08 17:26:39
I found the mention of --ignore-config otpion in boost-system.jam.
I have several questions:
1. How to load parameters currently containg by those files.
As I think I can put the file containig paramters near the Jamroot file,
say it would be 'config.jam' file.
Then I need to load this file to make targets defined by it to be known
How to load the 'config.jam' file?
2. The second question is that. When I put the code below
path-constant BOOST_ROOT : [ os.environ BOOST_ROOT ] ;
use-project boost : $(BOOST_ROOT) ; # this produces an error
into 'site-config.jam' I get an error.
But if I put 'use-project ...' definition into 'user-config.jam'
everything is fine.
What am I doing wrong?
<Also there are many warnings before the error, I deleted it for the
sake of brevity>
*** argument error
* rule property-set.refine-from-user-input ( parent-requirements :
specification * : project-module : location )
* called with: ( : <include>. <define>BOOST_ALL_NO_LIB=1
<toolset>como:<link>static <toolset>como-linux:<define>_GNU_SOURCE=1 <xsl
* missing argument parent-requirements
D:/work/extra/boost-build/build\property-set.jam:411:see definition of
rule 'refine-from-user-input' being called
D:/work/extra/boost-build/build\project.jam:924: in project
D:\work\libs\3rdlibs\boost\boost_1_45_0\Jamroot:204: in modules.load
D:/work/extra/boost-build/build\project.jam:310: in load-jamfile
D:/work/extra/boost-build/build\project.jam:62: in project.load
D:/work/extra/boost-build/build\project.jam:760: in project.use
D:/work/extra/boost-build\build-system.jam:258: in load-config
D:/work/extra/boost-build\build-system.jam:361: in load-configuration-files
D:/work/extra/boost-build\build-system.jam:554: in load
D:\work\extra\boost-build\kernel\modules.jam:283: in import
D:\work\extra\boost-build\kernel\bootstrap.jam:142: in boost-build
D:\work\extra\boost-build\boost-build.jam:8: in module scope
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