I have a C++ project which is using boost. The whole project is built using scons + Visual Studio 2008. We’ve installed Visual Studio 2010 and it turned out scons was attempting to use the later compiler instead of the old one – and failed to build the project as boost and visual studio 2010 don’t like each other very much – yet. We’d like to suppress this and force scons to use the 2008 version. Is this possible? How do we do this?
Share
You can modify the scons Environment() by just choosing
the version you want:
env = Environment(MSVC_VERSION=
<someversion>)From the scons manpage: