
Hi all, Is there a way to add an <include> to bjam, by specifying it on command line? In particular, I'm trying to build a non-boost library, which needs boost ;) Therefore, I need to specify the path where boost headers are. Since I want to distribute this library, I don't think that adding an <include> in the jamfile, specifying where my boost is installed is the way to go ;) So, is it possible? If so, how? Thanks. Best, John -- John Torjo Freelancer -- john@torjo.com -- http://www.torjo.com/logview/ - viewing/filtering logs is just too easy!

John Torjo wrote:
Is there a way to add an <include> to bjam, by specifying it on command line?
In particular, I'm trying to build a non-boost library, which needs boost ;)
Therefore, I need to specify the path where boost headers are. Since I want to distribute this library, I don't think that adding an <include> in the jamfile, specifying where my boost is installed is the way to go ;)
I use boost-build.jam file with: boost-build $(BOOST_ROOT)/tools/build/v1 ; and then call bjam like bjam -sBOOST_ROOT=path Regards, Janusz

John Torjo <john.lists@torjo.com> writes:
Hi all,
Is there a way to add an <include> to bjam, by specifying it on command line?
In particular, I'm trying to build a non-boost library, which needs boost ;)
Therefore, I need to specify the path where boost headers are. Since I want to distribute this library, I don't think that adding an <include> in the jamfile, specifying where my boost is installed is the way to go ;)
So, is it possible? If so, how? Thanks.
The right way is to use project references. See the content of libs/python/example for a complete illustration. Then you can put <include>@boost in your project requirements (BBv1) or <include>/boost// (BBv2). -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (3)
-
David Abrahams
-
Janusz Piwowarski
-
John Torjo