diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-07-29 15:41:39 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-07-29 15:41:39 +0000 |
commit | 3401a9028760d55170cacd8201e2a7fcd6fa9367 (patch) | |
tree | 0af5c7ad69f24b8c0cc24590a37da5b850c8fe72 /tools | |
parent | 6815ff07d45e5905b2a5c1e1df8f09ae8c38e5de (diff) | |
download | external_llvm-3401a9028760d55170cacd8201e2a7fcd6fa9367.zip external_llvm-3401a9028760d55170cacd8201e2a7fcd6fa9367.tar.gz external_llvm-3401a9028760d55170cacd8201e2a7fcd6fa9367.tar.bz2 |
Switch the CMake edis build over to add_llvm_library_dependencies
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/edis/CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/edis/CMakeLists.txt b/tools/edis/CMakeLists.txt index 9406c2a..71f2534 100644 --- a/tools/edis/CMakeLists.txt +++ b/tools/edis/CMakeLists.txt @@ -5,12 +5,12 @@ set(SOURCES EDMain.cpp ) -set(LLVM_LINK_COMPONENTS mcdisassembler) +set(EDIS_DEPENDS LLVMMCDisassembler LLVMMCParser) if( LLVM_TARGETS_TO_BUILD MATCHES X86 ) - list(APPEND LLVM_LINK_COMPONENTS x86asmprinter x86disassembler) + list(APPEND EDIS_DEPENDS LLVMX86AsmPrinter LLVMX86AsmParser LLVMX86Disassembler LLVMX86Desc) endif() if( LLVM_TARGETS_TO_BUILD MATCHES ARM ) - list(APPEND LLVM_LINK_COMPONENTS armasmprinter armdisassembler) + list(APPEND EDIS_DEPENDS LLVMARMAsmPrinter LLVMARMAsmParser LLVMARMDisassembler LLVMARMDesc) endif() # TODO: Process EnhancedDisassembly.exports @@ -19,6 +19,7 @@ if( NOT WIN32 AND LLVM_ENABLE_PIC ) set(bsl ${BUILD_SHARED_LIBS}) set(BUILD_SHARED_LIBS ON) add_llvm_library(EnhancedDisassembly ${SOURCES}) + add_llvm_library_dependencies(EnhancedDisassembly ${EDIS_DEPENDS}) set_property(TARGET EnhancedDisassembly PROPERTY OUTPUT_NAME "EnhancedDisassembly") set(BUILD_SHARED_LIBS ${bsl}) @@ -31,4 +32,8 @@ if( NOT BUILD_SHARED_LIBS ) add_llvm_library(${EnhancedDisassembly_STATIC_TARGET_NAME} ${SOURCES}) set_property(TARGET ${EnhancedDisassembly_STATIC_TARGET_NAME} PROPERTY OUTPUT_NAME "EnhancedDisassembly") + + add_llvm_library_dependencies(${EnhancedDisassembly_STATIC_TARGET_NAME} + ${EDIS_DEPENDS}) + endif() |