# alter paths for boost libs in Blender's CMake to use my system boost

i need help on how to alter blenders cmake to use my system boost instead of the one it dowloaded by itself. It automatically dose it for python, to us the same python I'm using on my computer. I believe this is pretty simple to do, but i have no idea on how to do it.

the reason for this, is that there is a library I'm trying to run in blender and it makes its own bindings with the boost it is made with. and so i can import DLIB into blender, but i cannot use any of the advance features. From going around the web, the only way for it to work properly in blender is for dlib to be compiled with blenders boost, which i believe is much harder to do, or for blender to be compiled with dlibs boost, which is what I'm going for.

So how do you do this?

thanks pascal

• this is a question and answer forum. if the answer worked for you, click on accept. otherwise add a comment, why it didn't. – Noidea Aug 24 '16 at 9:20

find_package(Boost bla bla COMPONENTS \${__boost_packages})

SET(BOOST_ROOT "path/to/boost/")