OSDN Git Service

Fix build errors LLVM tests are disabled.
authorDiego Novillo <dnovillo@google.com>
Thu, 11 Jul 2019 22:08:35 +0000 (22:08 +0000)
committerDiego Novillo <dnovillo@google.com>
Thu, 11 Jul 2019 22:08:35 +0000 (22:08 +0000)
commit79eb12d19313cb52c6be1e72f8fdf481de1a1867
tree236670ba044b21e62602cae6d01a5f2126e44eb2
parentcb57db03360f8247a475e77dc895f7adb573c0b1
Fix build errors LLVM tests are disabled.

Original patch from alanbaker@google.com

Fixes the error:
CMake Error in <...>/llvm/cmake/modules/CMakeLists.txt:

export called with target "LLVMTestingSupport" which requires target
"gtest" that is not in the export set.

This occurs when LLVM is embedded in a larger project, but is configured not to
include tests. If testing is disabled gtest isn't available and LLVM fails to
configure.

Differential revision: https://reviews.llvm.org/D63097

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365836 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CMakeLists.txt