Skip to content

Commit c6d1ff2

Browse files
committed
Update
[ghstack-poisoned]
1 parent 9b1cd87 commit c6d1ff2

File tree

2 files changed

+19
-28
lines changed

2 files changed

+19
-28
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,12 @@ add_library(executorch_backends INTERFACE)
711711
# A target containing all configured backends.
712712
target_link_libraries(executorch_backends INTERFACE ${_executorch_backends})
713713

714+
install(
715+
TARGETS executorch_backends
716+
INCLUDES
717+
DESTINATION ${_common_include_directories}
718+
)
719+
714720
if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
715721
# Baseline libraries that executor_runner will link against.
716722
set(_executor_runner_libs executorch gflags)

tools/cmake/executorch-config.cmake

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -57,28 +57,18 @@ set(EXECUTORCH_FOUND ON)
5757

5858
target_link_libraries(executorch INTERFACE executorch_core)
5959

60-
set(backend_lib_list
61-
coreml_util
62-
coreml_inmemoryfs
63-
coremldelegate
64-
mpsdelegate
65-
neuron_backend
66-
qnn_executorch_backend
67-
# Start XNNPACK Lib Deps
68-
XNNPACK
69-
xnnpack-microkernels-prod
70-
kleidiai
71-
# End XNNPACK Lib Deps
72-
xnnpack_backend
73-
vulkan_backend
74-
)
75-
7660
set(lib_list
7761
flatccrt
7862
etdump
7963
bundled_program
8064
extension_data_loader
8165
extension_flat_tensor
66+
coreml_util
67+
coreml_inmemoryfs
68+
coremldelegate
69+
mpsdelegate
70+
neuron_backend
71+
qnn_executorch_backend
8272
portable_ops_lib
8373
custom_ops
8474
extension_module
@@ -87,8 +77,15 @@ set(lib_list
8777
extension_tensor
8878
extension_threadpool
8979
extension_training
80+
xnnpack_backend
81+
# Start XNNPACK Lib Deps
82+
XNNPACK
83+
xnnpack-microkernels-prod
84+
kleidiai
85+
# End XNNPACK Lib Deps
9086
cpuinfo
9187
pthreadpool
88+
vulkan_backend
9289
optimized_kernels
9390
optimized_portable_kernels
9491
cpublas
@@ -99,9 +96,6 @@ set(lib_list
9996
quantized_ops_lib
10097
quantized_ops_aot_lib
10198
)
102-
103-
list(APPEND lib_list ${backend_lib_list})
104-
10599
foreach(lib ${lib_list})
106100
# Name of the variable which stores result of the find_library search
107101
set(lib_var "LIB_${lib}")
@@ -204,12 +198,3 @@ if(TARGET xnnpack_backend)
204198
)
205199
target_link_options_shared_lib(xnnpack_backend)
206200
endif()
207-
208-
# An interface target containing all available backends.
209-
add_library(executorch_backends INTERFACE)
210-
211-
foreach(lib ${backend_lib_list})
212-
if(TARGET ${lib})
213-
target_link_options(executorch_backends INTERFACE ${lib})
214-
endif()
215-
endforeach()

0 commit comments

Comments
 (0)