Re: [Boost-bugs] [Boost C++ Libraries] #9214: (Windows) bjam should choose the msvc version from the current visual studio prompt

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9214: (Windows) bjam should choose the msvc version from the current visual studio prompt
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-08 04:58:38


#9214: (Windows) bjam should choose the msvc version from the current visual
studio prompt
-------------------------------+----------------------------
  Reporter: desurium@… | Owner:
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: Building Boost
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------------

Comment (by dave@…):

 I've just crashed into this *feature* with Boost 1.59.0 when wanting a
 VS2103 build with VS2015 also installed. Setting `toolset=msvc-12.0`
 didn't work; `b2` reported:
 {{{
 notice: [msvc-cfg] msvc-14.0 detected, command: 'C:\Program Files
 (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe'
 notice: [msvc-cfg] msvc-12.0 detected, command: 'C:\Program Files
 (x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe'
 notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio
 14.0\VC\bin\cl.exe' for msvc, condition <toolset>msvc-14.0
 }}}
 and happily used the version I **did not** specify.

 The solution is to edit `project-config.jam` and set:
 {{{
 using msvc : 12.0 ;
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9214#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC