[cmake] Build gtest from LLVM when building standalone
authorMichal Gorny <mgorny@gentoo.org>
Wed, 2 Nov 2016 22:57:23 +0000 (22:57 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Wed, 2 Nov 2016 22:57:23 +0000 (22:57 +0000)
commit1f368434f0dd2af95f38b375c58c9b9fa7d9235f
tree484a2029127f9c1308bcbe2c697febe6589dc6ae
parentacf80064716710a6546282066f4ddd1eeb911f04
[cmake] Build gtest from LLVM when building standalone

Include the gtest utility directory from LLVM sources when performing
a stand-alone build of LLDB. This is necessary to have a correct gtest
library to link tests against, as the one used by LLVM is not installed
(and not supposed to be). This is the same approach as used in clang.

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

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