Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53206 - trunk/tools/build/v2/tools
From: ghost_at_[hidden]
Date: 2009-05-23 11:26:17


Author: vladimir_prus
Date: 2009-05-23 11:26:16 EDT (Sat, 23 May 2009)
New Revision: 53206
URL: http://svn.boost.org/trac/boost/changeset/53206

Log:
MSVC 10 autodetection.

Closes #3069.

Text files modified:
   trunk/tools/build/v2/tools/msvc.jam | 12 +++++++++---
   1 files changed, 9 insertions(+), 3 deletions(-)

Modified: trunk/tools/build/v2/tools/msvc.jam
==============================================================================
--- trunk/tools/build/v2/tools/msvc.jam (original)
+++ trunk/tools/build/v2/tools/msvc.jam 2009-05-23 11:26:16 EDT (Sat, 23 May 2009)
@@ -677,11 +677,15 @@
             # version from the path.
             # FIXME: We currently detect both Microsoft Visual Studio 9.0 and
             # 9.0express as 9.0 here.
- if [ MATCH "(Microsoft Visual Studio 9)" : $(command) ]
+ if [ MATCH "(Microsoft Visual Studio 10)" : $(command) ]
+ {
+ version = 10.0 ;
+ }
+ else if [ MATCH "(Microsoft Visual Studio 9)" : $(command) ]
             {
                 version = 9.0 ;
             }
- if [ MATCH "(Microsoft Visual Studio 8)" : $(command) ]
+ else if [ MATCH "(Microsoft Visual Studio 8)" : $(command) ]
             {
                 version = 8.0 ;
             }
@@ -1266,7 +1270,7 @@
 
 
 # Known toolset versions, in order of preference.
-.known-versions = 9.0 9.0express 8.0 8.0express 7.1 7.1toolkit 7.0 6.0 ;
+.known-versions = 10.0 9.0 9.0express 8.0 8.0express 7.1 7.1toolkit 7.0 6.0 ;
 
 # Version aliases.
 .version-alias-6 = 6.0 ;
@@ -1274,6 +1278,7 @@
 .version-alias-7 = 7.0 ;
 .version-alias-8 = 8.0 ;
 .version-alias-9 = 9.0 ;
+.version-alias-10 = 10.0 ;
 
 # Names of registry keys containing the Visual C++ installation path (relative
 # to "HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft").
@@ -1284,6 +1289,7 @@
 .version-8.0express-reg = "VCExpress\\8.0\\Setup\\VC" ;
 .version-9.0-reg = "VisualStudio\\9.0\\Setup\\VC" ;
 .version-9.0express-reg = "VCExpress\\9.0\\Setup\\VC" ;
+.version-10.0-reg = "VisualStudio\\10.0\\Setup\\VC" ;
 
 # Visual C++ Toolkit 2003 does not store its installation path in the registry.
 # The environment variable 'VCToolkitInstallDir' and the default installation


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk