diff options
Diffstat (limited to 'lib/MC/MCDisassembler/CMakeLists.txt')
-rw-r--r-- | lib/MC/MCDisassembler/CMakeLists.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/MC/MCDisassembler/CMakeLists.txt b/lib/MC/MCDisassembler/CMakeLists.txt index 45ec75d00e..4debb288e5 100644 --- a/lib/MC/MCDisassembler/CMakeLists.txt +++ b/lib/MC/MCDisassembler/CMakeLists.txt @@ -15,9 +15,16 @@ add_llvm_library_dependencies(LLVMMCDisassembler foreach(t ${LLVM_TARGETS_TO_BUILD}) set(td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}) + if(EXISTS ${td}/TargetInfo/CMakeLists.txt) + add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Info") + endif() + if(EXISTS ${td}/MCTargetDesc/CMakeLists.txt) + add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Desc") + endif() + if(EXISTS ${td}/AsmParser/CMakeLists.txt) + add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}AsmParser") + endif() if(EXISTS ${td}/Disassembler/CMakeLists.txt) add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Disassembler") - elseif(EXISTS ${td}/TargetInfo/CMakeLists.txt) - add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Info") endif() endforeach(t) |