File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ function(add_umf_benchmark)
40
40
# * SRCS - source files
41
41
# * LIBS - libraries to be linked with
42
42
# * LIBDIRS - directories of libraries to be linked with
43
+ # * EXTRARGS - additional arguments to be passed to the add_test
43
44
set (oneValueArgs NAME )
44
- set (multiValueArgs SRCS LIBS LIBDIRS)
45
+ set (multiValueArgs SRCS LIBS LIBDIRS EXTRARGS )
45
46
cmake_parse_arguments (
46
47
ARG
47
48
""
@@ -66,7 +67,7 @@ function(add_umf_benchmark)
66
67
67
68
add_test (
68
69
NAME ${BENCH_NAME}
69
- COMMAND ${BENCH_NAME}
70
+ COMMAND ${BENCH_NAME} ${ARG_EXTRARGS}
70
71
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
71
72
72
73
if ("${BENCH_NAME} " STREQUAL "umf-ubench" )
@@ -148,7 +149,7 @@ add_umf_benchmark(
148
149
NAME benchmark
149
150
SRCS benchmark.cpp
150
151
LIBS ${LIBS_OPTIONAL} benchmark::benchmark
151
- LIBDIRS ${LIB_DIRS} )
152
+ LIBDIRS ${LIB_DIRS} EXTRARGS --benchmark_filter=threads:1$ )
152
153
153
154
if (UMF_BUILD_BENCHMARKS_MT)
154
155
add_umf_benchmark(
You can’t perform that action at this time.
0 commit comments