Boost logo

Boost-Build :

From: Andrej van der Zee (mavdzee_at_[hidden])
Date: 2007-04-22 22:07:50


Hi,

How can I override settings of my global project
settings in Jamroot for one specific target and
variant? For example, if I have the following

--------------- Jamroot -------------

project
   : requirements
     <variant>release:<optimization>speed
   ;

--------------- Jamfile --------------

exe test
        : [ glob *.cpp ] /site-config//boost_date_time
        :
        <variant>release:<optimization>off
        ;

---------- Error message "bjam release" -----

/usr/share/boost-build/build/targets.jam:1039: in
basic-target.__init__ from module
object(typed-target)@51
error: gristed element in sources for ./test
/usr/share/boost-build/build/targets.jam:1323: in
object(typed-target)@51.__init__ from module
object(typed-target)@51
/usr/share/boost-build/kernel/class.jam:92: in new
from module class
/usr/share/boost-build/build/targets.jam:1471: in
targets.create-typed-target from module targets
/usr/share/boost-build/build/type.jam:371: in exe from
module type
Jamfile:8: in modules.load from module
Jamfile</home/andrej/ubilog/root/util2>
/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:148: in load
from module build-system
/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
/usr/share/boost-build/boost-build.jam:1: in module
scope from module

So how can I override global project settings in
Jamroot per variant in a Jamfile? How can I make this
to work?

Cheers,
Andrej

      ___________________________________________________________
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html


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