Skip to content

Commit 94975dc

Browse files
committed
Kernels should depend on executorch_core
1 parent e60958a commit 94975dc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

configurations/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if(EXECUTORCH_BUILD_KERNELS_OPTIMIZED)
5959
optimized_kernels
6060
${_optimized_native_cpu_ops_lib_portable_kernels_lib}
6161
DEPS
62-
executorch
62+
executorch_core
6363
)
6464

6565
install(TARGETS optimized_native_cpu_ops_lib DESTINATION lib)

extension/flat_tensor/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endif()
1818

1919
list(TRANSFORM _extension_flat_tensor__srcs PREPEND "${EXECUTORCH_ROOT}/")
2020
add_library(extension_flat_tensor ${_extension_flat_tensor__srcs})
21-
target_link_libraries(extension_flat_tensor executorch extension_data_loader)
21+
target_link_libraries(extension_flat_tensor executorch_core)
2222
target_include_directories(
2323
extension_flat_tensor
2424
PUBLIC ${EXECUTORCH_ROOT}/..

kernels/optimized/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ target_compile_options(optimized_kernels PUBLIC ${_common_compile_options})
7171
#
7272
# optimized_ops_lib: Register optimized ops kernels into Executorch runtime
7373
gen_operators_lib(
74-
LIB_NAME "optimized_ops_lib" KERNEL_LIBS optimized_kernels DEPS executorch
74+
LIB_NAME "optimized_ops_lib" KERNEL_LIBS optimized_kernels DEPS executorch_core
7575
)
7676

7777
install(

kernels/quantized/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ if(NOT CMAKE_GENERATOR STREQUAL "Xcode"
142142
endif()
143143

144144
add_library(quantized_kernels ${_quantized_kernels__srcs})
145-
target_link_libraries(quantized_kernels PRIVATE executorch)
145+
target_link_libraries(quantized_kernels PRIVATE executorch_core)
146146
target_compile_options(quantized_kernels PUBLIC ${_common_compile_options})
147147
# Build a library for _quantized_kernels_srcs
148148
#
149149
# quantized_ops_lib: Register quantized ops kernels into Executorch runtime
150150
gen_operators_lib(
151-
LIB_NAME "quantized_ops_lib" KERNEL_LIBS quantized_kernels DEPS executorch
151+
LIB_NAME "quantized_ops_lib" KERNEL_LIBS quantized_kernels DEPS executorch_core
152152
)
153153

154154
install(

0 commit comments

Comments
 (0)