From 5ac4e51d53bef378c085d6ba590fa8b025673c31 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 10 Oct 2018 17:46:20 +0000 Subject: [PATCH] Fix linking filesystem benchmarks llvm-svn: 344160 --- libcxx/benchmarks/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libcxx/benchmarks/CMakeLists.txt b/libcxx/benchmarks/CMakeLists.txt index f557d4aea39a..40489cabc2ec 100644 --- a/libcxx/benchmarks/CMakeLists.txt +++ b/libcxx/benchmarks/CMakeLists.txt @@ -108,6 +108,9 @@ macro(add_benchmark_test name source_file) if (TARGET cxx_experimental) target_link_libraries(${libcxx_target} cxx_experimental) endif() + if (TARGET cxx_filesystem) + target_link_libraries(${libcxx_target} cxx_filesystem) + endif() target_link_libraries(${libcxx_target} -lbenchmark) set_target_properties(${libcxx_target} PROPERTIES @@ -124,7 +127,7 @@ macro(add_benchmark_test name source_file) if (LIBCXX_BENCHMARK_NATIVE_STDLIB STREQUAL "libstdc++") target_link_libraries(${native_target} -lstdc++fs) elseif (LIBCXX_BENCHMARK_NATIVE_STDLIB STREQUAL "libc++") - target_link_libraries(${native_target} -lc++experimental) + target_link_libraries(${native_target} -lc++fs -lc++experimental) endif() if (LIBCXX_HAS_PTHREAD_LIB) target_link_libraries(${native_target} -pthread)