Boost logo

Boost-Build :

Subject: [Boost-build] set env variable before execution
From: Jan Boehme (jan.boehme_at_[hidden])
Date: 2011-04-07 06:23:24


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