[Runtimes] If LLVM_INCLUDE_TESTS=On depend on gtest

Summary: If we are building the tests for the runtimes we should make them depend on gtest so that gtest is built and ready before we run any of the check-* targets.

Reviewers: phosek, compnerd

Reviewed By: compnerd

Subscribers: mgorny, winksaville, llvm-commits

Tags: #llvm

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

llvm-svn: 361436
This commit is contained in:
Chris Bieneman 2019-05-22 21:42:06 +00:00
parent e3748b5a85
commit ed00367961

View File

@ -553,6 +553,8 @@ else() # if this is included from LLVM's CMake
obj2yaml
sancov
sanstats
gtest_main
gtest
)
foreach(target ${test_targets} ${SUB_CHECK_TARGETS})
add_dependencies(${target} ${RUNTIMES_TEST_DEPENDS})