[CMake] Add dependency on Mips target if it is available

The Mips plugins conditionally link the Mips backend, so we need to conditionally add the target as a dependency.

This resolves a bot failure from r294515.

http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-buildserver/builds/4606/steps/build%20android/logs/stdio

llvm-svn: 294521
This commit is contained in:
Chris Bieneman 2017-02-08 21:24:51 +00:00
parent 9dd78f8a6d
commit a14fbe0cf3
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
if(Mips IN_LIST LLVM_TARGETS_TO_BUILD)
set(mips_target Mips)
endif()
add_lldb_library(lldbPluginInstructionMIPS PLUGIN
EmulateInstructionMIPS.cpp
@ -10,4 +14,5 @@ add_lldb_library(lldbPluginInstructionMIPS PLUGIN
LINK_COMPONENTS
MC
Support
${mips_target}
)

View File

@ -1,3 +1,7 @@
if(Mips IN_LIST LLVM_TARGETS_TO_BUILD)
set(mips_target Mips)
endif()
add_lldb_library(lldbPluginInstructionMIPS64 PLUGIN
EmulateInstructionMIPS64.cpp
@ -10,4 +14,5 @@ add_lldb_library(lldbPluginInstructionMIPS64 PLUGIN
LINK_COMPONENTS
MC
Support
${mips_target}
)