سؤال

I have two boost directories on my machine. One in /usr/ and one in /home/user/boost. How can I tell bjam to use only my local version in /home/user/boost. I have already set BOOST_ROOT to point to that directory, but bjam still tries to use the version in /usr/.

Edit: I figured out, that I can use a file boost-build.jam beside the Jamroot, with only one line telling bjam where to find boost.build:

boost-build $(BOOST_ROOT)/tools/build/v2 ;

But this is only suboptimal, since I have to create this file for every project. Is there a simpler solution?

هل كانت مفيدة؟

المحلول

I think the easiest solution is to globally set the BOOST_BUILD_PATH environment variable. You should not need to mess with boost-build.jam for each project in that case.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top