From 1c43a556b80d813260c7590fef6dc29306ae9eee Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Wed, 22 May 2019 21:42:06 +0000 Subject: [PATCH] [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361436 91177308-0d34-0410-b5e6-96231b3b80d8 --- runtimes/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt index 7bbf0cf26a5..285e1fcae1d 100644 --- a/runtimes/CMakeLists.txt +++ b/runtimes/CMakeLists.txt @@ -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}) -- 2.50.1