Vladimir -<br><br>What would be the proper way to make this compile from the top directory?&nbsp; I believe I can add bhome as a default include path to all subprojects, but I don&#39;t know the syntax.<br><br>I&#39;m still confused as to why I can&#39;t build from the top dir, when bhome is properly included in the sub-project&#39;s Jamfile?
<br><br>Thanks,<br>Aaron R&gt;<br><br><div><span class="gmail_quote">On 4/30/07, <b class="gmail_sendername">Vladimir Prus</b> &lt;<a href="mailto:ghost@cs.msu.su">ghost@cs.msu.su</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
DrAnonymous wrote:<br><br>&gt; Phillip -<br>&gt;<br>&gt; Thanks for the feedback.&nbsp;&nbsp;If I remove the &lt;include&gt; from the Jamfile, the<br>&gt; compile won&#39;t work, no matter where I am.<br>&gt;<br>&gt; Would I use the bhome entry you mentioned in the jamroot or the Jamfile?
<br>&gt;<br>&gt; Thanks,<br>&gt; Aaron R&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; On 4/30/07, Phillip Seaver &lt;<a href="mailto:phil@apago.com">phil@apago.com</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; DrAnonymous wrote, on 4/30/2007 11:52 AM:
<br>&gt;&gt; &gt; jamfile<br>&gt;&gt; &gt; exe atrans : atrans.cpp : &lt;include&gt;$bhome ;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; When I am in subdir and do a bjam, I get an executable under the bin<br>&gt;&gt; &gt; directory.&nbsp;&nbsp;If I try to do a bjam under the top directory, the include
<br>&gt;&gt; &gt; files aren&#39;t found.&nbsp;&nbsp;Why aren&#39;t the includes working from the Jamroot?<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; The bhome env variable is defined as an absolute path.<br>&gt;&gt; &gt;<br>&gt;&gt;<br>&gt;&gt; I&#39;m almost positive environment variables don&#39;t get added as jam
<br>&gt;&gt; variables.&nbsp;&nbsp;You would need to do something like:<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; import modules ;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; bhome = [ modules.peek : bhome ] ;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; My guess would be that it&#39;s running the compile from whatever directory
<br>&gt;&gt; you&#39;re in and picking up the includes from the working directory.<br><br>Whenever you want to use &#39;bhome&#39;. There&#39;s no difference whatsoever between<br>Jamroot and Jamfile except that Jamroot inherit properties from 
user-config.jam,<br>while Jamfile -- from Jamfile/Jamroot in a parent directory.<br><br>- Volodya<br><br><br>_______________________________________________<br>Unsubscribe &amp; other changes: <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-build">
http://lists.boost.org/mailman/listinfo.cgi/boost-build</a><br></blockquote></div><br>