Fix linking filesystem benchmarks
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@344160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -108,6 +108,9 @@ macro(add_benchmark_test name source_file)
|
|||||||
if (TARGET cxx_experimental)
|
if (TARGET cxx_experimental)
|
||||||
target_link_libraries(${libcxx_target} cxx_experimental)
|
target_link_libraries(${libcxx_target} cxx_experimental)
|
||||||
endif()
|
endif()
|
||||||
|
if (TARGET cxx_filesystem)
|
||||||
|
target_link_libraries(${libcxx_target} cxx_filesystem)
|
||||||
|
endif()
|
||||||
target_link_libraries(${libcxx_target} -lbenchmark)
|
target_link_libraries(${libcxx_target} -lbenchmark)
|
||||||
set_target_properties(${libcxx_target}
|
set_target_properties(${libcxx_target}
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
@@ -124,7 +127,7 @@ macro(add_benchmark_test name source_file)
|
|||||||
if (LIBCXX_BENCHMARK_NATIVE_STDLIB STREQUAL "libstdc++")
|
if (LIBCXX_BENCHMARK_NATIVE_STDLIB STREQUAL "libstdc++")
|
||||||
target_link_libraries(${native_target} -lstdc++fs)
|
target_link_libraries(${native_target} -lstdc++fs)
|
||||||
elseif (LIBCXX_BENCHMARK_NATIVE_STDLIB STREQUAL "libc++")
|
elseif (LIBCXX_BENCHMARK_NATIVE_STDLIB STREQUAL "libc++")
|
||||||
target_link_libraries(${native_target} -lc++experimental)
|
target_link_libraries(${native_target} -lc++fs -lc++experimental)
|
||||||
endif()
|
endif()
|
||||||
if (LIBCXX_HAS_PTHREAD_LIB)
|
if (LIBCXX_HAS_PTHREAD_LIB)
|
||||||
target_link_libraries(${native_target} -pthread)
|
target_link_libraries(${native_target} -pthread)
|
||||||
|
|||||||
Reference in New Issue
Block a user