diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-02-13 22:01:35 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-02-13 22:01:35 +0000 |
commit | 20b99b60b83001bd6964716f1b11b5815db49868 (patch) | |
tree | bf7cb6000bb131cb2564c1fbf03261f4f1cdff62 /llvm/tools | |
parent | 93ecf3a91774e6361eb8a7de04da0b1e94ed8599 (diff) | |
download | bcm5719-llvm-20b99b60b83001bd6964716f1b11b5815db49868.tar.gz bcm5719-llvm-20b99b60b83001bd6964716f1b11b5815db49868.zip |
MSBuild integration: get the LibraryPath right (PR18707)
It was pointing to lib\clang\3.4, but now we're on 3.5.
Make CMake insert the right version automatically.
llvm-svn: 201363
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/msbuild/CMakeLists.txt | 2 | ||||
-rw-r--r-- | llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/msbuild/CMakeLists.txt b/llvm/tools/msbuild/CMakeLists.txt index f8c25126769..b7be71d2a88 100644 --- a/llvm/tools/msbuild/CMakeLists.txt +++ b/llvm/tools/msbuild/CMakeLists.txt @@ -1,6 +1,7 @@ if (WIN32) # CPack will install a registry key in this format that we wish to reference. set(REG_KEY "${CPACK_PACKAGE_INSTALL_REGISTRY_KEY}") + set(LIB_PATH_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}") foreach (platform "Win32" "x64") set(prop_file_in "Microsoft.Cpp.Win32.llvm.props.in") @@ -45,6 +46,7 @@ if (WIN32) install(FILES "toolset-vs2013_xp.targets" DESTINATION "tools/msbuild/${platform}") endforeach() + set(LIB_PATH_VERSION) set(REG_KEY) install(DIRECTORY . diff --git a/llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in b/llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in index 78cd8e23434..a775c31c767 100644 --- a/llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in +++ b/llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in @@ -6,7 +6,7 @@ <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>
- <LibraryPath>$(LLVMInstallDir)\lib\clang\3.4\lib\windows;$(LibraryPath)</LibraryPath>
+ <LibraryPath>$(LLVMInstallDir)\lib\clang\@LIB_PATH_VERSION@\lib\windows;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup>
|