This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Build gtest from LLVM when building standalone
ClosedPublic

Authored by mgorny on Nov 2 2016, 8:19 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny updated this revision to Diff 76709.Nov 2 2016, 8:19 AM
mgorny retitled this revision from to [cmake] Build gtest from LLVM when building standalone.
mgorny updated this object.
mgorny added reviewers: beanz, zturner.
mgorny added a subscriber: lldb-commits.
beanz accepted this revision.Nov 2 2016, 3:46 PM
beanz edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Nov 2 2016, 3:46 PM
This revision was automatically updated to reflect the committed changes.