Blame SOURCES/0001-Export-LLVM_DYLIB_COMPONENTS-in-LLVMConfig.cmake.patch

9c4e62
From 4d613a84ce271c6225068bef67d727ae02b2e3b1 Mon Sep 17 00:00:00 2001
9c4e62
From: Pavel Labath <labath@google.com>
9c4e62
Date: Wed, 14 Mar 2018 09:28:38 +0000
9c4e62
Subject: [PATCH] Export LLVM_DYLIB_COMPONENTS in LLVMConfig.cmake
9c4e62
9c4e62
Summary:
9c4e62
This is needed so that external projects (e.g. a standalone build of
9c4e62
lldb) can link to the LLVM shared library via the USE_SHARED argument of
9c4e62
llvm_config. Without this, llvm_config would add LLVM to the link list,
9c4e62
but then also add the constituent static libraries, resulting in
9c4e62
multiply defined symbols.
9c4e62
9c4e62
Reviewers: beanz, mgorny
9c4e62
9c4e62
Subscribers: llvm-commits
9c4e62
9c4e62
Differential Revision: https://reviews.llvm.org/D44391
9c4e62
9c4e62
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327484 91177308-0d34-0410-b5e6-96231b3b80d8
9c4e62
---
9c4e62
 cmake/modules/LLVMConfig.cmake.in | 2 ++
9c4e62
 1 file changed, 2 insertions(+)
9c4e62
9c4e62
diff --git a/cmake/modules/LLVMConfig.cmake.in b/cmake/modules/LLVMConfig.cmake.in
9c4e62
index fe4df52..e700186 100644
9c4e62
--- a/cmake/modules/LLVMConfig.cmake.in
9c4e62
+++ b/cmake/modules/LLVMConfig.cmake.in
9c4e62
@@ -13,6 +13,8 @@ set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
9c4e62
 
9c4e62
 set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@)
9c4e62
 
9c4e62
+set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@)
9c4e62
+
9c4e62
 set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
9c4e62
 
9c4e62
 set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
9c4e62
-- 
9c4e62
1.8.3.1
9c4e62