Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit b57d2fd

Browse files
committed
format
1 parent fbd11b2 commit b57d2fd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

cmake/OpenCensusHelpers.cmake

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ endfunction()
4040

4141
# Helper function like bazel's cc_benchmark. Usage:
4242
#
43-
# opencensus_benchmark(trace_some_benchmark internal/some_benchmark.cc dep1 dep2...)
43+
# opencensus_benchmark(trace_some_benchmark internal/some_benchmark.cc dep1
44+
# dep2...)
4445
function(opencensus_benchmark NAME SRC)
4546
if(BUILD_TESTING)
46-
set(_NAME "opencensus_${NAME}")
47-
add_executable(${_NAME} ${SRC})
48-
prepend_opencensus(DEPS "${ARGN}")
49-
target_link_libraries(${_NAME} "${DEPS}" benchmark)
50-
add_test(NAME ${_NAME} COMMAND ${_NAME})
47+
set(_NAME "opencensus_${NAME}")
48+
add_executable(${_NAME} ${SRC})
49+
prepend_opencensus(DEPS "${ARGN}")
50+
target_link_libraries(${_NAME} "${DEPS}" benchmark)
51+
add_test(NAME ${_NAME} COMMAND ${_NAME})
5152
endif()
5253
endfunction()
5354

0 commit comments

Comments
 (0)