Vladimir -<br><br>What would be the proper way to make this compile from the top directory? I believe I can add bhome as a default include path to all subprojects, but I don't know the syntax.<br><br>I'm still confused as to why I can't build from the top dir, when bhome is properly included in the sub-project's Jamfile? <br><br>Thanks,<br>Aaron R><br><br><div><span class="gmail_quote">On 4/30/07, <b class="gmail_sendername">Vladimir Prus</b> <<a href="mailto:ghost@cs.msu.su">ghost@cs.msu.su</a>> 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>> Phillip -<br>><br>> Thanks for the feedback. If I remove the <include> from the Jamfile, the<br>> compile won't work, no matter where I am.<br>><br>> Would I use the bhome entry you mentioned in the jamroot or the Jamfile? <br>><br>> Thanks,<br>> Aaron R><br>><br>><br>><br>> On 4/30/07, Phillip Seaver <<a href="mailto:phil@apago.com">phil@apago.com</a>> wrote:<br>>><br>>> DrAnonymous wrote, on 4/30/2007 11:52 AM: <br>>> > jamfile<br>>> > exe atrans : atrans.cpp : <include>$bhome ;<br>>> ><br>>> > When I am in subdir and do a bjam, I get an executable under the bin<br>>> > directory. If I try to do a bjam under the top directory, the include <br>>> > files aren't found. Why aren't the includes working from the Jamroot?<br>>> ><br>>> > The bhome env variable is defined as an absolute path.<br>>> ><br>>><br>>> I'm almost positive environment variables don't get added as jam <br>>> variables. You would need to do something like:<br>>><br>>> import modules ;<br>>> bhome = [ modules.peek : bhome ] ;<br>>><br>>><br>>> My guess would be that it's running the compile from whatever directory <br>>> you're in and picking up the includes from the working directory.<br><br>Whenever you want to use 'bhome'. There'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 & 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>