aboutsummaryrefslogtreecommitdiff
path: root/libc/benchmarks
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-08-12 12:02:37 +0200
committerPavel Labath <pavel@labath.sk>2020-08-27 15:35:57 +0200
commit9cb222e749e8392517a138cf6645a7c220d671c8 (patch)
tree9d6e6440bbdf39ceb27718fbc784ab1f22f2c2f5 /libc/benchmarks
parent266825620c7f8d10d48abd0346527cea50c8202d (diff)
downloadllvm-9cb222e749e8392517a138cf6645a7c220d671c8.zip
llvm-9cb222e749e8392517a138cf6645a7c220d671c8.tar.gz
llvm-9cb222e749e8392517a138cf6645a7c220d671c8.tar.bz2
[cmake] Make gtest include directories a part of the library interface
This applies the same fix that D84748 did for macro definitions. Appropriate include path is now automatically set for all libraries which link against gtest targets, which avoids the need to set include_directories in various parts of the project. Differential Revision: https://reviews.llvm.org/D86616
Diffstat (limited to 'libc/benchmarks')
-rw-r--r--libc/benchmarks/CMakeLists.txt5
1 files changed, 0 insertions, 5 deletions
diff --git a/libc/benchmarks/CMakeLists.txt b/libc/benchmarks/CMakeLists.txt
index 6f3cfdb..2275dad 100644
--- a/libc/benchmarks/CMakeLists.txt
+++ b/libc/benchmarks/CMakeLists.txt
@@ -53,11 +53,6 @@ function(add_libc_benchmark_unittest target_name)
EXCLUDE_FROM_ALL
${LIBC_BENCHMARKS_UNITTEST_SRCS}
)
- target_include_directories(${target_name}
- PRIVATE
- ${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include
- ${LLVM_MAIN_SRC_DIR}/utils/unittest/googlemock/include
- )
target_link_libraries(${target_name}
PRIVATE
gtest_main