[llvm] r192610 - vs2013 msbuild integration: add missing .target files, fix typo in CMakeLists
Hans Wennborg
hans at hanshq.net
Mon Oct 14 11:16:37 PDT 2013
Author: hans
Date: Mon Oct 14 13:16:37 2013
New Revision: 192610
URL: http://llvm.org/viewvc/llvm-project?rev=192610&view=rev
Log:
vs2013 msbuild integration: add missing .target files, fix typo in CMakeLists
This should fix PR17568.
Patch by Josh Samuel!
Added:
llvm/trunk/tools/msbuild/toolset-vs2013.targets
llvm/trunk/tools/msbuild/toolset-vs2013_xp.targets
Modified:
llvm/trunk/tools/msbuild/CMakeLists.txt
Modified: llvm/trunk/tools/msbuild/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/msbuild/CMakeLists.txt?rev=192610&r1=192609&r2=192610&view=diff
==============================================================================
--- llvm/trunk/tools/msbuild/CMakeLists.txt (original)
+++ llvm/trunk/tools/msbuild/CMakeLists.txt Mon Oct 14 13:16:37 2013
@@ -17,7 +17,7 @@ if (WIN32)
configure_file(${prop_file_in} ${prop_file_v110})
set(VS_VERSION "v110_xp")
configure_file(${prop_file_in} ${prop_file_v110_xp})
- set(VS_VSERSION "v120")
+ set(VS_VERSION "v120")
set(MSC_VERSION "1800")
configure_file(${prop_file_in} ${prop_file_v120})
set(VS_VERSION "v120_xp")
Added: llvm/trunk/tools/msbuild/toolset-vs2013.targets
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/msbuild/toolset-vs2013.targets?rev=192610&view=auto
==============================================================================
--- llvm/trunk/tools/msbuild/toolset-vs2013.targets (added)
+++ llvm/trunk/tools/msbuild/toolset-vs2013.targets Mon Oct 14 13:16:37 2013
@@ -0,0 +1,3 @@
+<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(VCTargetsPath)\Microsoft.CppCommon.targets" />
+</Project>
Added: llvm/trunk/tools/msbuild/toolset-vs2013_xp.targets
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/msbuild/toolset-vs2013_xp.targets?rev=192610&view=auto
==============================================================================
--- llvm/trunk/tools/msbuild/toolset-vs2013_xp.targets (added)
+++ llvm/trunk/tools/msbuild/toolset-vs2013_xp.targets Mon Oct 14 13:16:37 2013
@@ -0,0 +1,21 @@
+<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <!-- Force TargetFrameworkVersion to v4.0 to support XP-->
+ <PropertyGroup>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <BeforeClCompileTargets>NoSupportCodeAnalysisXP;$(BeforeClCompileTargets)</BeforeClCompileTargets>
+ </PropertyGroup>
+
+ <Import Project="$(VCTargetsPath)\Microsoft.CppCommon.targets" />
+
+ <Target Name="NoSupportCodeAnalysisXP" Condition="'$(ErrorNoSupportCodeAnalysisXP)' != 'false'">
+ <VCMessage Condition="'$(DesignTimeBuild)' != 'true' and '@(ClCompile->AnyHaveMetadataValue('EnablePREfast', 'true'))'=='true'" Code="MSB8026" Type="Error"/>
+ </Target>
+
+ <PropertyGroup>
+ <PrepareForBuildDependsOn>CheckWindowsSDK71A;$(PrepareForBuildDependsOn)</PrepareForBuildDependsOn>
+ </PropertyGroup>
+
+ <Target Name="CheckWindowsSDK71A">
+ <VCMessage Code="MSB8003" Type="Warning" Arguments="WindowsSdkDir_71A" Condition="'$(WindowsSdkDir_71A)'=='' and '$(UseEnv)' != 'true'" />
+ </Target>
+</Project>
More information about the llvm-commits
mailing list