summaryrefslogtreecommitdiff
path: root/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-08-29 22:09:43 +0000
committerReid Kleckner <reid@kleckner.net>2013-08-29 22:09:43 +0000
commit002062b024c094279d4b0ed7db13a69159b2d8ba (patch)
tree3d2b9e39fc7a3fc74edfaa671a6c2cf04a552a89 /tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in
parent6d3bbc05a79c5bfe1e7a17acb913d8d09c45b50b (diff)
downloadllvm-002062b024c094279d4b0ed7db13a69159b2d8ba.tar.gz
llvm-002062b024c094279d4b0ed7db13a69159b2d8ba.tar.bz2
llvm-002062b024c094279d4b0ed7db13a69159b2d8ba.tar.xz
Substitute LLVM's version into the msbuild property file at config time
Requires shuffling the CPack code up before add_subdirectory(tools), but that's where the version settings are anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in')
-rw-r--r--tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in b/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in
new file mode 100644
index 0000000000..0f474c0e9e
--- /dev/null
+++ b/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in
@@ -0,0 +1,9 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v100\Microsoft.Cpp.$(Platform).v100.props"/>
+
+ <PropertyGroup>
+ <LLVMInstallDir>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\LLVM\@REG_KEY@)</LLVMInstallDir>
+ <LLVMInstallDir Condition="'$(LLVMInstallDir)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LLVM\@REG_KEY@)</LLVMInstallDir>
+ <ExecutablePath>$(LLVMInstallDir)\msbuild-bin;$(ExecutablePath)</ExecutablePath>
+ </PropertyGroup>
+</Project>