[CMake] Cleanup check-lldb targets
authorChris Bieneman <beanz@apple.com>
Wed, 12 Oct 2016 20:26:13 +0000 (20:26 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 12 Oct 2016 20:26:13 +0000 (20:26 +0000)
commite549894b7d57131940bc0964d681be0eb1990104
treeeb56d25e5ff8d1115a84751883b4d7f43463b06a
parent47df0196b834ecd1d94acf6057b783a4b5553fc2
[CMake] Cleanup check-lldb targets

Summary:
This patch adds the following fixes to the check-lldb targets:

* Adds missing dependencies on lldb tools so they get built before tests execute
* Adds Ninja USES_TERMINAL to the target so that the output streams to stdout as it executes
* Uses a generator expression to find the lldb executable, this is more robust than constructing the path manually

Reviewers: tfiala, zturner

Subscribers: mgorny, lldb-commits

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

llvm-svn: 284046
lldb/test/CMakeLists.txt