Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.0.1
-
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>