[CMake] Prevent lldbDebugserverCommon from building if you disable debugserver builds
authorAlex Langford <apl@fb.com>
Thu, 17 Jan 2019 23:14:04 +0000 (23:14 +0000)
committerAlex Langford <apl@fb.com>
Thu, 17 Jan 2019 23:14:04 +0000 (23:14 +0000)
commitcb1c467edb2ce56c93cf6429cf2faffca7df5252
tree50d19b5482c2fac9a9031c870c76bc1ae9dc6ff5
parent26e4cef093fee48f567eb7f8dfe386b3804466de
[CMake] Prevent lldbDebugserverCommon from building if you disable debugserver builds

Summary:
The flags `LLDB_USE_SYSTEM_DEBUGSERVER` and `LLDB_NO_DEBUGSERVER` were
introduced to the debugserver build. If one of these two flags are set, then we
do not build and sign debugserver. However I noticed that we were still building
the lldbDebugserverCommon and lldbDebugserverCommon_NonUI libraries regardless
of whether or not these flags were set. I don't believe we should be building
these libraries unless we are building and signing debugserver.

Reviewers: sgraenitz, davide, JDevlieghere, beanz, vsk, aprantl, labath

Subscribers: mgorny, jfb, lldb-commits

Differential Revision: https://reviews.llvm.org/D56763

llvm-svn: 351496
lldb/tools/debugserver/source/CMakeLists.txt
lldb/unittests/CMakeLists.txt