Selecting MSVS version

By default, Scons' MSVS tool uses the highest installed version of MSVS for the compiler. To change this, you must change the MSVS_VERSION construction variable.

# This creates an environment which will use the 6.0 compiler even if higher
# versions are installed on the machine.
env60 = Environment(MSVS_VERSION = '6.0')
# This creates an option the developer can use to select between v6.0 and
# v7.1. If no option is specified, the environment will revert to the regular
# behavior (highest installed version).
opts = Options()
opts.Add(EnumOption('MSVS_VERSION', 'MS Visual C++ version', None,
allowed_values=('6.0', '7.1)))
envOption = Environment(options = opts)