[llvm] r361436 - [Runtimes] If LLVM_INCLUDE_TESTS=On depend on gtest
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Wed May 22 14:42:06 PDT 2019
Author: cbieneman
Date: Wed May 22 14:42:06 2019
New Revision: 361436
URL: http://llvm.org/viewvc/llvm-project?rev=361436&view=rev
Log:
[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
Modified:
llvm/trunk/runtimes/CMakeLists.txt
Modified: llvm/trunk/runtimes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtimes/CMakeLists.txt?rev=361436&r1=361435&r2=361436&view=diff
==============================================================================
--- llvm/trunk/runtimes/CMakeLists.txt (original)
+++ llvm/trunk/runtimes/CMakeLists.txt Wed May 22 14:42:06 2019
@@ -553,6 +553,8 @@ else() # if this is included from LLVM's
obj2yaml
sancov
sanstats
+ gtest_main
+ gtest
)
foreach(target ${test_targets} ${SUB_CHECK_TARGETS})
add_dependencies(${target} ${RUNTIMES_TEST_DEPENDS})
More information about the llvm-commits
mailing list