diff options
author | Stella Laurenzo <stellaraccident@gmail.com> | 2022-03-02 10:17:05 -0800 |
---|---|---|
committer | Stella Laurenzo <laurenzo@google.com> | 2022-03-02 10:53:32 -0800 |
commit | 9f37775472b45986b0ecce5243bd6ce119e5bd69 (patch) | |
tree | 8defc4a07d4c4767aefd7d5aad066bc243c5f884 /llvm/runtimes | |
parent | 738042711bc08cde9135873200b1d088e6cf11c3 (diff) | |
download | llvm-9f37775472b45986b0ecce5243bd6ce119e5bd69.zip llvm-9f37775472b45986b0ecce5243bd6ce119e5bd69.tar.gz llvm-9f37775472b45986b0ecce5243bd6ce119e5bd69.tar.bz2 |
[cmake] Prefix gtest and gtest_main with "llvm_".
The upstream project ships CMake rules for building vanilla gtest/gmock which conflict with the names chosen by LLVM. Since LLVM's build rules here are quite specific to LLVM, prefixing them to avoid collision is the right thing (i.e. there does not appear to be a path to letting someone *replace* LLVM's googletest with one they bring, so co-existence should be the goal).
This allows LLVM to be included with testing enabled within projects that themselves have a dependency on an official gtest release.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D120789
Diffstat (limited to 'llvm/runtimes')
-rw-r--r-- | llvm/runtimes/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index 11391fa..b99cb37 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -480,8 +480,8 @@ if(runtimes) obj2yaml sancov sanstats - gtest_main - gtest + llvm_gtest_main + llvm_gtest ) foreach(target ${test_targets} ${SUB_CHECK_TARGETS}) add_dependencies(${target} ${RUNTIMES_TEST_DEPENDS}) |