aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/CMakeLists.txt
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2020-10-09 18:41:21 +0200
committerserge-sans-paille <sguelton@redhat.com>2020-11-13 10:35:24 +0100
commit9218ff50f93085d0a16a974db28ca8f14bc66f64 (patch)
tree00618a75171e9b483b20315faefaec17641200e4 /llvm/lib/IR/CMakeLists.txt
parentb498303066a63a203d24f739b2d2e0e56dca70d1 (diff)
downloadllvm-9218ff50f93085d0a16a974db28ca8f14bc66f64.zip
llvm-9218ff50f93085d0a16a974db28ca8f14bc66f64.tar.gz
llvm-9218ff50f93085d0a16a974db28ca8f14bc66f64.tar.bz2
llvmbuildectomy - replace llvm-build by plain cmake
No longer rely on an external tool to build the llvm component layout. Instead, leverage the existing `add_llvm_componentlibrary` cmake function and introduce `add_llvm_component_group` to accurately describe component behavior. These function store extra properties in the created targets. These properties are processed once all components are defined to resolve library dependencies and produce the header expected by llvm-config. Differential Revision: https://reviews.llvm.org/D90848
Diffstat (limited to 'llvm/lib/IR/CMakeLists.txt')
-rw-r--r--llvm/lib/IR/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt
index 49805d5..0bba18e 100644
--- a/llvm/lib/IR/CMakeLists.txt
+++ b/llvm/lib/IR/CMakeLists.txt
@@ -59,8 +59,14 @@ add_llvm_component_library(LLVMCore
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/IR
- LINK_LIBS ${LLVM_PTHREAD_LIB}
+ LINK_LIBS
+ ${LLVM_PTHREAD_LIB}
DEPENDS
intrinsics_gen
+
+ LINK_COMPONENTS
+ BinaryFormat
+ Remarks
+ Support
)