Boost logo

Boost-Build :

Subject: [Boost-build] How to get a default value for BOOST_BUILD_PATH ?
From: Samuel Debionne (samuel.debionne_at_[hidden])
Date: 2014-02-10 07:41:24

I'm using Boost Build for my own project. Boost.Build is installed on my
system using "b2 install --prefix=/somewhere/bbv2".

This is working fine for the "hello" example.

For a specific project, I would like to add some custom rules to the
BBv2 path so I added a boost-build.jam at the root of the project :

MYPROJECT_ROOT = $(.boost-build-file:D) ;


if ! $(MYPROJECT_ROOT)/tools/build in $(BOOST_BUILD_PATH)

BOOST_BUILD = [ MATCH --boost-build=(.*) : $(ARGV) ] ;
boost-build $(BOOST_BUILD) ;

My question is how should I define DEFAULT_BOOST_BUILD_PATH (something
like "../share/boost-build" relative to bjam executable path) ? Is there
such variable predefined ? If I could avoid defining it by hand that
would be great !


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