summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2019-03-05 00:38:32 +0000
committerShoaib Meenai <smeenai@fb.com>2019-03-05 00:38:32 +0000
commitc2b3f62315f8243cba6b14c2ac6b0402f897819d (patch)
treeee7ceebf798423fc655ac915d8713fc709773df1 /clang
parente94add2f64cad2f488b67c13f7550034b4d55295 (diff)
downloadbcm5719-llvm-c2b3f62315f8243cba6b14c2ac6b0402f897819d.tar.gz
bcm5719-llvm-c2b3f62315f8243cba6b14c2ac6b0402f897819d.zip
[cmake] Create exports for umbrella library targets
When using the umbrella llvm-libraries and clang-libraries targets, we should export all library targets, otherwise they'll be part of our distribution but not usable from the CMake package. Differential Revision: https://reviews.llvm.org/D58862 llvm-svn: 355354
Diffstat (limited to 'clang')
-rw-r--r--clang/cmake/modules/AddClang.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
index 5ff2e8b13fa..76ff6b1f152 100644
--- a/clang/cmake/modules/AddClang.cmake
+++ b/clang/cmake/modules/AddClang.cmake
@@ -91,6 +91,7 @@ macro(add_clang_library name)
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "libclang")
if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
+ "clang-libraries" IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
NOT LLVM_DISTRIBUTION_COMPONENTS)
set(export_to_clangtargets EXPORT ClangTargets)
set_property(GLOBAL PROPERTY CLANG_HAS_EXPORTS True)
OpenPOWER on IntegriCloud