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

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