Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38201

Wrong $(PlatformToolSetVersion) set 100 instead of 110 when VS2010 is also installed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.0.1
    • Build tools: qmake
    • None
    • Windows 8, Visual Studio 2012 Ultimate (Update 2) with Visual Studio 2010 SP1 and Visual Studio 2008 also installed, Qt 5.0.1 compiled with win32-msvc2012 64-bit and Qt Visual Studio Integration 1.2.0.

    Description

      When you use "Open Qt Project File (.pro)" from the QT5 menu, the resulting project uses the Visual C++ Compiler 2010 instead of 2012, reguardless of the 'Platform Toolset' chosen in 'Configuration properties -> General' (which is set to 'Visual Studio 2012 (v110)'.

      If you look at the macros used for the project, you can see $(PlatformToolSet) correctly set to v110, but $(PlatformToolsetVersion) set to '100' instead of '110' (see attachment).

      This does not happen if you create a Qt Project directly, only when created from a .pro file.

      Adding these lines to the vcxproj solves the problem:
      <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
      <PlatformToolset>v110</PlatformToolset>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
      <PlatformToolset>v110</PlatformToolset>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
      <PlatformToolset>v110</PlatformToolset>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
      <PlatformToolset>v110</PlatformToolset>
      </PropertyGroup>

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            cpelvet Cédric Pelvet
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes