Identical code for different branches (CID 1254883)
[oota-llvm.git] / tools / msbuild / toolset-vs2014_xp.targets
1 <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
2   <!-- Force TargetFrameworkVersion to v4.0 to support XP-->\r
3   <PropertyGroup>\r
4     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>\r
5     <BeforeClCompileTargets>NoSupportCodeAnalysisXP;$(BeforeClCompileTargets)</BeforeClCompileTargets>\r
6   </PropertyGroup>\r
7 \r
8   <Import Project="$(VCTargetsPath)\Microsoft.CppCommon.targets" />\r
9 \r
10   <Target Name="NoSupportCodeAnalysisXP" Condition="'$(ErrorNoSupportCodeAnalysisXP)' != 'false'">\r
11     <VCMessage Condition="'$(DesignTimeBuild)' != 'true' and '@(ClCompile->AnyHaveMetadataValue('EnablePREfast', 'true'))'=='true'" Code="MSB8026" Type="Error"/>\r
12   </Target>\r
13 \r
14   <PropertyGroup>\r
15     <PrepareForBuildDependsOn>CheckWindowsSDK71A;$(PrepareForBuildDependsOn)</PrepareForBuildDependsOn>\r
16   </PropertyGroup>\r
17 \r
18   <Target Name="CheckWindowsSDK71A">\r
19     <VCMessage Code="MSB8003" Type="Warning" Arguments="WindowsSdkDir_71A" Condition="'$(WindowsSdkDir_71A)'=='' and '$(UseEnv)' != 'true'" />\r
20   </Target>\r
21 </Project>\r