$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Phillip Seaver (phil_at_[hidden])
Date: 2007-04-30 14:19:53
DrAnonymous wrote, on 4/30/2007 11:52 AM:
> jamfile
> exe atrans : atrans.cpp : <include>$bhome ;
>
> When I am in subdir and do a bjam, I get an executable under the bin
> directory. If I try to do a bjam under the top directory, the include
> files aren't found. Why aren't the includes working from the Jamroot?
>
> The bhome env variable is defined as an absolute path.
>
I'm almost positive environment variables don't get added as jam
variables. You would need to do something like:
import modules ;
bhome = [ modules.peek : bhome ] ;
My guess would be that it's running the compile from whatever directory
you're in and picking up the includes from the working directory.
Phillip