-
Notifications
You must be signed in to change notification settings - Fork 35
/
Global.props
44 lines (36 loc) · 2.2 KB
/
Global.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!--
****************************************************************************************************
Global.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
This file should be included immediately after Microsoft.Cpp.Default.props in all projects here.
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<Import Project="..\Global.props" />
Copyright (C) 2014 Jay Satiro <[email protected]>. All rights reserved. https://github.com/jay
****************************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!--
VS2010 specific: 'DefaultPlatformToolset' isn't an inherited MS property so it must be defined here.
-->
<DefaultPlatformToolset Condition="'$(DefaultPlatformToolset)' == '' and '$(VisualStudioVersion)' == '10.0'">v100</DefaultPlatformToolset>
<!--
In Visual Studio what is referred to in the documentation as the default platform toolset is
whatever is in the inherited MS property 'PlatformToolset' and _not_ 'DefaultPlatformToolset'. That
means in Visual Studio 2010, 2012 and 2013 the default platform toolset is v100 (VS2010 compiler).
http://msdn.microsoft.com/en-us/library/8x480de8(v=vs.110).aspx
http://msdn.microsoft.com/en-us/library/8x480de8(v=vs.120).aspx
The default platform toolset for my projects should be the toolset included with whatever version of
Visual Studio is being used. That can be found in 'DefaultPlatformToolset', eg:
Visual Studio 2010 $(DefaultPlatformToolset): v100
Visual Studio 2012 $(DefaultPlatformToolset): v110
Visual Studio 2013 $(DefaultPlatformToolset): v120
This way the projects will be built properly using the appropriate toolset no matter which version
of Visual Studio (>= 2010) the project files are opened in (eg Visual Studio 2012 should compile
project using its 2012 compiler) and without any project upgrade notices.
-->
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
</Project>