Our system has boost installed in two different places - one in /usr/... and the other is a custom install in another directory. I want to only include the headers/libs from the custom install but scons keeps picking up the standard path in /usr/...
Is there a way to force scons to only see the headers/libs in the custom directory. I have added this path to my CPPPATH variable, but the /usr/include path is also there which I do need for other c++ headers?
The include directories ("-I") are searched in left-to-right order and before standard paths (http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html)
Try prepending your CPPPATH using Prepend:
env = Environment()
env.Prepend(CPPPATH = ['/opt/boost'])
Here's the reference for Prepend: http://www.scons.org/doc/HTML/scons-user/x1444.html#AEN1719