[CMake] Make llvm_install_library_symlink respect LLVM_LIBDIR_SUFFIX.
authorChris Bieneman <beanz@apple.com>
Wed, 11 Nov 2015 16:19:39 +0000 (16:19 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 11 Nov 2015 16:19:39 +0000 (16:19 +0000)
This is required to support multilib install targets, and addresses a regression introduced in r252093.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252749 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddLLVM.cmake

index 2da9b12..bf2a482 100644 (file)
@@ -1074,7 +1074,7 @@ function(llvm_install_library_symlink name dest type)
   set(full_name ${CMAKE_${type}_LIBRARY_PREFIX}${name}${CMAKE_${type}_LIBRARY_SUFFIX})
   set(full_dest ${CMAKE_${type}_LIBRARY_PREFIX}${dest}${CMAKE_${type}_LIBRARY_SUFFIX})
 
-  set(output_dir lib)
+  set(output_dir lib${LLVM_LIBDIR_SUFFIX})
   if(WIN32 AND "${type}" STREQUAL "SHARED")
     set(output_dir bin)
   endif()