From c2dcdf95eba0d8210bf456821b8afff9b22a7bc9 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Mon, 27 Jan 2020 10:55:32 +0100 Subject: [PATCH] [libc] Fix benchmarks CMakeLists.txt Summary: This is a follow up on https://reviews.llvm.org/rGaba80d0734d1#886881. `target_link_options` requires CMake>=3.13. Reviewers: abrachet Subscribers: mgorny, MaskRay, tschuett, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D73452 --- libc/utils/benchmarks/CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/libc/utils/benchmarks/CMakeLists.txt b/libc/utils/benchmarks/CMakeLists.txt index 8480484..d5926d6 100644 --- a/libc/utils/benchmarks/CMakeLists.txt +++ b/libc/utils/benchmarks/CMakeLists.txt @@ -91,9 +91,17 @@ add_library(libc-benchmark LibcBenchmark.h ) add_dependencies(libc-benchmark google-benchmark) -target_include_directories(libc-benchmark PUBLIC "${GOOGLE_BENCHMARK_LIBC_INSTALL}/include") -target_link_options(libc-benchmark PUBLIC "${GOOGLE_BENCHMARK_LINK_FLAGS}") -target_link_libraries(libc-benchmark PUBLIC LLVMSupport -lbenchmark Threads::Threads) +target_include_directories(libc-benchmark + PUBLIC + "${GOOGLE_BENCHMARK_LIBC_INSTALL}/include" +) +target_link_libraries(libc-benchmark + PUBLIC + "${GOOGLE_BENCHMARK_LINK_FLAGS}" # FIXME: Move to `target_link_options` + -lbenchmark # FIXME: Move to `target_link_options` + LLVMSupport + Threads::Threads +) fix_rtti(libc-benchmark) add_libc_benchmark_unittest(libc-benchmark-test -- 2.7.4