Export LLVM_DYLIB_COMPONENTS in LLVMConfig.cmake
authorPavel Labath <labath@google.com>
Wed, 14 Mar 2018 09:28:38 +0000 (09:28 +0000)
committerPavel Labath <labath@google.com>
Wed, 14 Mar 2018 09:28:38 +0000 (09:28 +0000)
commitd54c34722c97e46fd8ab33bd57e84a41f061c925
treeadd963d25d7188ca22ac7af0d756d1a99a819ba8
parent5a48f95a0f4428336d9d7732a961fd09bb411839
Export LLVM_DYLIB_COMPONENTS in LLVMConfig.cmake

Summary:
This is needed so that external projects (e.g. a standalone build of
lldb) can link to the LLVM shared library via the USE_SHARED argument of
llvm_config. Without this, llvm_config would add LLVM to the link list,
but then also add the constituent static libraries, resulting in
multiply defined symbols.

Reviewers: beanz, mgorny

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D44391

llvm-svn: 327484
llvm/cmake/modules/LLVMConfig.cmake.in