Boost logo

Boost-Build :

Subject: [Boost-build] Install rule and default-build
From: Anthony Foglia (AFoglia_at_[hidden])
Date: 2010-06-10 17:30:49

It seems that the install rule does not handle default build settings
like other rules do. I currently have this install rule which works fine.

explicit install ;
install install
    : $(converters)

    : <variant>release:<location>Release/$(project-name)

Where converters is a list of executables, and project names is a string.

Now if I want to make this a default-build setting (so I can perhaps
override it from a higher Jamfile) like so:

explicit install ;
install install
    : $(converters)
    : <variant>release:<location>Release/$(project-name)

I get the following error when running "bjam release install":
/usr/share/boost-build/build/feature.jam:432: in
feature.validate-value-string from module feature
error: "release:<location>Release/tdi-converters" is not a known value
of feature <variant>
error: legal values: "debug" "release" "profile" "debug-python" "production"
/usr/share/boost-build/build/property.jam:267: in validate1 from module
/usr/share/boost-build/build/property.jam:290: in property.validate from
module property
/usr/share/boost-build/build/property-set.jam:375: in
property-set.create-with-validation from module property-set
/usr/share/boost-build/build/targets.jam:1526: in
targets.main-target-default-build from module targets
/usr/share/boost-build/tools/stage.jam:488: in install from module stage
Jamfile:85: in modules.load from module
/usr/share/boost-build/build/project.jam:312: in load-jamfile from
module project
/usr/share/boost-build/build/project.jam:68: in load from module project
/usr/share/boost-build/build/project.jam:170: in project.find from
module project
/usr/share/boost-build/build-system.jam:248: in load from module
/usr/share/boost-build/kernel/modules.jam:261: in import from module modules
/usr/share/boost-build/kernel/bootstrap.jam:132: in boost-build from module
/home/AFoglia/projects/asa/trunk/boost-build.jam:7: in module scope from

        Shouldn't moving a requirement to default-build not break anything as
long as I don't try to override it?

Anthony Foglia
Princeton Consultants
(609) 987-8787 x233

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at