diff options
author | Shoaib Meenai <smeenai@fb.com> | 2019-02-15 15:59:04 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2019-02-15 15:59:04 +0000 |
commit | a4015cc0447ecd53e16a3d76c5719c2f8736b331 (patch) | |
tree | d2bf1710ed2ad68fa1440bb2121c3bbe3b5fe8a3 /cmake | |
parent | 5cf987e5668e6f6004c0bb773b7bcc96daeffc79 (diff) | |
download | clang-a4015cc0447ecd53e16a3d76c5719c2f8736b331.tar.gz |
[clang] Add build and install targets for clang libraries
This is modeled after the existing llvm-libraries target. It's a
convenient way to include all clang libraries in a distribution.
This differs slightly from the llvm-libraries target in that it adds any
library added via add_clang_library, whereas llvm-libraries only
includes targets added via add_llvm_library that didn't use the MODULE
or BUILDTREE_ONLY arguments. add_clang_library doesn't appear to have
any equivalents of those arguments, so the conditions don't apply.
Differential Revision: https://reviews.llvm.org/D58269
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/AddClang.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/AddClang.cmake b/cmake/modules/AddClang.cmake index 7fcf93f1a3..4c3f2d19f7 100644 --- a/cmake/modules/AddClang.cmake +++ b/cmake/modules/AddClang.cmake @@ -108,6 +108,8 @@ macro(add_clang_library name) DEPENDS ${name} COMPONENT ${name}) endif() + + set_property(GLOBAL APPEND PROPERTY CLANG_LIBS ${name}) endif() set_property(GLOBAL APPEND PROPERTY CLANG_EXPORTS ${name}) else() |