Boost logo

Boost-Build :

Subject: Re: [Boost-build] set env variable before execution
From: Ian Emmons (iemmons_at_[hidden])
Date: 2011-04-07 07:21:42


A related question: Is there a way to set the current working directory of the process spawned by the run or unit-test rules to a value of my choosing?

On Apr 7, 2011, at 6:23 AM, Jan Boehme wrote:
> Hello!
>
> Is there a way to set environment variables before processing a rule?
> Regarding to my use case the preferred way would be to set it inside the
> run and/or the test-suite rule arguments.
>
> <pseudo>
> test-suite test01 : [ run test_01.cpp
> ../..//variant : <env>MYVAR=/data
> ]
> : <threading>multi
> ;
> </pseudo>
>
> Thank you very much, jan.


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