diff options
author | Shoaib Meenai <smeenai@fb.com> | 2019-03-05 00:38:32 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2019-03-05 00:38:32 +0000 |
commit | 551f20daee260ebcbf8696f83d95109db50ec50a (patch) | |
tree | a10c975a3a5f5fe60b8e31ff9874a95474da74ef /cmake | |
parent | 1b98a7945112e4ea5c10144fd3e81c27751d1c2f (diff) | |
download | clang-551f20daee260ebcbf8696f83d95109db50ec50a.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/AddClang.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/AddClang.cmake b/cmake/modules/AddClang.cmake index 5ff2e8b13f..76ff6b1f15 100644 --- a/cmake/modules/AddClang.cmake +++ b/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) |