[llvm-commits] [llvm] r136463 - /llvm/trunk/tools/edis/CMakeLists.txt
Douglas Gregor
dgregor at apple.com
Fri Jul 29 08:41:39 PDT 2011
Author: dgregor
Date: Fri Jul 29 10:41:39 2011
New Revision: 136463
URL: http://llvm.org/viewvc/llvm-project?rev=136463&view=rev
Log:
Switch the CMake edis build over to add_llvm_library_dependencies
Modified:
llvm/trunk/tools/edis/CMakeLists.txt
Modified: llvm/trunk/tools/edis/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/edis/CMakeLists.txt?rev=136463&r1=136462&r2=136463&view=diff
==============================================================================
--- llvm/trunk/tools/edis/CMakeLists.txt (original)
+++ llvm/trunk/tools/edis/CMakeLists.txt Fri Jul 29 10:41:39 2011
@@ -5,12 +5,12 @@
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 @@
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 @@
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()
More information about the llvm-commits
mailing list