]> granicus.if.org Git - llvm/commitdiff
[Runtimes] If LLVM_INCLUDE_TESTS=On depend on gtest
authorChris Bieneman <chris.bieneman@me.com>
Wed, 22 May 2019 21:42:06 +0000 (21:42 +0000)
committerChris Bieneman <chris.bieneman@me.com>
Wed, 22 May 2019 21:42:06 +0000 (21:42 +0000)
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

index 7bbf0cf26a5875440f871d246236e17eb759af0a..285e1fcae1d35275b514709522aab60ae2313f4f 100644 (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})