Skip to content

Commit a0b8bf0

Browse files
authored
Format cmake files.
Differential Revision: D62168513 Pull Request resolved: #5081
1 parent e1dfb14 commit a0b8bf0

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

examples/arm/executor_runner/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ endif()
133133
# The arm_executor_runner executable
134134
add_executable(arm_executor_runner)
135135

136-
target_sources(arm_executor_runner PRIVATE arm_executor_runner.cpp arm_perf_monitor.cpp)
136+
target_sources(
137+
arm_executor_runner PRIVATE arm_executor_runner.cpp arm_perf_monitor.cpp
138+
)
137139

138140
# Include the target's bare-metal linker script
139141
ethosu_eval_link_options(arm_executor_runner)

extension/parallel/test/CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
2121

2222
include(${EXECUTORCH_ROOT}/build/Test.cmake)
2323

24-
set(_test_srcs
25-
thread_parallel_test.cpp ../thread_parallel.cpp
26-
)
24+
set(_test_srcs thread_parallel_test.cpp ../thread_parallel.cpp)
2725

2826
et_cxx_test(
29-
extension_parallel_test SOURCES ${_test_srcs} EXTRA_LIBS pthreadpool cpuinfo extension_threadpool
27+
extension_parallel_test
28+
SOURCES
29+
${_test_srcs}
30+
EXTRA_LIBS
31+
pthreadpool
32+
cpuinfo
33+
extension_threadpool
3034
)
3135
target_include_directories(
3236
extension_parallel_test

extension/threadpool/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ if(NOT CMAKE_CXX_STANDARD)
2020
set(CMAKE_CXX_STANDARD 17)
2121
endif()
2222

23-
add_library(extension_threadpool threadpool.cpp threadpool_guard.cpp cpuinfo_utils.cpp)
23+
add_library(
24+
extension_threadpool threadpool.cpp threadpool_guard.cpp cpuinfo_utils.cpp
25+
)
2426
target_link_libraries(
2527
extension_threadpool PUBLIC executorch_no_prim_ops cpuinfo pthreadpool
2628
)
2729
target_include_directories(extension_threadpool PUBLIC ${EXECUTORCH_ROOT}/..)
2830
target_include_directories(
2931
extension_threadpool
30-
PUBLIC
31-
${EXECUTORCH_ROOT}/backends/xnnpack/third-party/cpuinfo/include
32-
${EXECUTORCH_ROOT}/backends/xnnpack/third-party/pthreadpool/include
32+
PUBLIC ${EXECUTORCH_ROOT}/backends/xnnpack/third-party/cpuinfo/include
33+
${EXECUTORCH_ROOT}/backends/xnnpack/third-party/pthreadpool/include
3334
)
3435
target_compile_options(extension_threadpool PUBLIC ${_common_compile_options})
3536

0 commit comments

Comments
 (0)