[cmake] Don't depend on lldb-server unless it's built.

llvm-svn: 281661
This commit is contained in:
Zachary Turner 2016-09-15 21:32:51 +00:00
parent 4ec013ac83
commit e13ffee009
1 changed files with 6 additions and 1 deletions

View File

@ -27,9 +27,14 @@ set(LLDB_TEST_DEPS
FileCheck
LLDBUnitTests
lldb
lldb-server
not
)
# lldb-server is not built on every platform.
if (TARGET lldb-server)
list(APPEND LLDB_TEST_DEPS lldb-server)
endif()
if(APPLE)
list(APPEND LLDB_TEST_DEPS debugserver)
endif()