From 9cb222e749e8392517a138cf6645a7c220d671c8 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 12 Aug 2020 12:02:37 +0200 Subject: [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 --- libc/benchmarks/CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libc/benchmarks') 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 -- cgit v1.1