llvm/tools/llvm-objdump/CMakeLists.txt
Chris Bieneman 26cbd17577 [CMake] Restrict libxar linkage to just llvm-objdump
At some point we're going to need libObject to have this dependency, but as it is now this is causing too many headaches. This commit will reduce the linkage to just llvm-objdump where it is strictly needed, and we'll cross the libObject bridge later when we need it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270866 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-26 16:32:40 +00:00

24 lines
353 B
CMake

set(LLVM_LINK_COMPONENTS
AllTargetsAsmPrinters
AllTargetsDescs
AllTargetsDisassemblers
AllTargetsInfos
CodeGen
DebugInfoDWARF
MC
MCDisassembler
Object
Support
)
add_llvm_tool(llvm-objdump
llvm-objdump.cpp
COFFDump.cpp
ELFDump.cpp
MachODump.cpp
)
if(HAVE_LIBXAR)
target_link_libraries(llvm-objdump ${XAR_LIB})
endif()