mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-23 22:22:05 +08:00
Fixed boost.log benchmark build.
This commit is contained in:
parent
2132fe0ec5
commit
254a6744e4
@ -32,7 +32,7 @@ function(add_benchmark _target)
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(_benchmark_DEFINITIONS)
|
if(_benchmark_DEFINITIONS)
|
||||||
target_compile_definitions(${_target} ${_benchmark_DEFINITIONS})
|
target_compile_definitions(${_target} PUBLIC ${_benchmark_DEFINITIONS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_test(NAME test_benchmark_${_target} COMMAND ${_target})
|
add_test(NAME test_benchmark_${_target} COMMAND ${_target})
|
||||||
@ -50,8 +50,9 @@ endif()
|
|||||||
|
|
||||||
find_package(Boost QUIET COMPONENTS log)
|
find_package(Boost QUIET COMPONENTS log)
|
||||||
if(Boost_FOUND)
|
if(Boost_FOUND)
|
||||||
add_benchmark(boost-bench LIBS ${Boost_LIBRARIES} INCLUDES ${Boost_INCLUDE_DIRS})
|
set(BOOST_DEFS "-DBOOST_LOG_DYN_LINK=1")
|
||||||
add_benchmark(boost-bench-mt LIBS ${Boost_LIBRARIES} INCLUDES ${Boost_INCLUDE_DIRS})
|
add_benchmark(boost-bench LIBS ${Boost_LIBRARIES} INCLUDES ${Boost_INCLUDE_DIRS} DEFINITIONS ${BOOST_DEFS})
|
||||||
|
add_benchmark(boost-bench-mt LIBS ${Boost_LIBRARIES} INCLUDES ${Boost_INCLUDE_DIRS} DEFINITIONS ${BOOST_DEFS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(glog QUIET)
|
find_package(glog QUIET)
|
||||||
|
Loading…
Reference in New Issue
Block a user