mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Merge pull request #962 from myd7349/bench-patch
Fix #961 benchmark link error
This commit is contained in:
commit
f4c737ef42
@ -30,20 +30,19 @@ if(NOT TARGET spdlog)
|
||||
endif()
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
find_package(benchmark CONFIG REQUIRED)
|
||||
|
||||
add_executable(bench bench.cpp)
|
||||
target_link_libraries(bench spdlog::spdlog Threads::Threads)
|
||||
target_link_libraries(bench PRIVATE spdlog::spdlog Threads::Threads)
|
||||
|
||||
add_executable(async_bench async_bench.cpp)
|
||||
target_link_libraries(async_bench spdlog::spdlog Threads::Threads)
|
||||
target_link_libraries(async_bench PRIVATE spdlog::spdlog Threads::Threads)
|
||||
|
||||
add_executable(latency latency.cpp)
|
||||
set(CMAKE_CXX_STANDARD_LIBRARIES -lbenchmark)
|
||||
target_link_libraries(latency spdlog::spdlog Threads::Threads)
|
||||
target_link_libraries(latency PRIVATE benchmark::benchmark spdlog::spdlog Threads::Threads)
|
||||
|
||||
|
||||
add_executable(formatter-bench formatter-bench.cpp)
|
||||
set(CMAKE_CXX_STANDARD_LIBRARIES -lbenchmark)
|
||||
target_link_libraries(formatter-bench spdlog::spdlog Threads::Threads)
|
||||
target_link_libraries(formatter-bench PRIVATE benchmark::benchmark spdlog::spdlog Threads::Threads)
|
||||
|
||||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/logs")
|
||||
|
Loading…
Reference in New Issue
Block a user