[CMake] Don't add gtest if it is already there
authorChris Bieneman <beanz@apple.com>
Mon, 5 Dec 2016 19:40:34 +0000 (19:40 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 5 Dec 2016 19:40:34 +0000 (19:40 +0000)
commit07522bb1875491dcb23739a58654bf13afed6a3b
treea9d0fd9a2cf0bacdf14eac8405d3000172395821
parentfc6100c195fdcea56f08f4de27397867f0cc8fff
[CMake] Don't add gtest if it is already there

LLVM build trees export the gtest library through a special export set. If you're building against a build tree you shouldn't need to re-add gtest, but if you're building against an installed LLVM you do.

llvm-svn: 288691
lldb/unittests/CMakeLists.txt