Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 27 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -701,21 +701,31 @@ if(EXECUTORCH_BUILD_PYBIND AND APPLE)
endif()

#
# executorch: Primary runtime library with primitive operators.
# prim_ops_lib: Primary runtime library with primitive operators.
#
# Provides the Program and Method interfaces, along with primitive operators.
# Does not contain portable kernels or other full operators. Does not contain
# any backends.
# Provides primitive operators. Does not contain portable kernels or other full
# operators. Does not contain any backends. Pulls executorch_core transitively.
#
add_library(executorch ${_executorch__srcs})
target_link_libraries(executorch PRIVATE executorch_core)
target_include_directories(executorch PUBLIC ${_common_include_directories})
target_compile_definitions(executorch PUBLIC C10_USING_CUSTOM_GENERATED_MACROS)
add_library(prim_ops_lib ${_prim_ops_lib__srcs})
# We keep the output name as "executorch" so that the compiled archive is still
# libexecutorch.a, ensuring scripts and iOS Xcode projects do not break.
set_target_properties(prim_ops_lib PROPERTIES OUTPUT_NAME "executorch")

# DEPRECATED: executorch alias is kept purely for backwards compatibility.
# External consumers linking to `executorch` will transparently link
# `prim_ops_lib`.
add_library(executorch INTERFACE)
target_link_libraries(executorch INTERFACE prim_ops_lib)
target_link_libraries(prim_ops_lib PRIVATE executorch_core)
target_include_directories(prim_ops_lib PUBLIC ${_common_include_directories})
target_compile_definitions(
prim_ops_lib PUBLIC C10_USING_CUSTOM_GENERATED_MACROS
)
if(NOT EXECUTORCH_ENABLE_LOGGING)
target_compile_definitions(executorch PUBLIC ET_LOG_ENABLED=0)
target_compile_definitions(prim_ops_lib PUBLIC ET_LOG_ENABLED=0)
endif()
target_compile_options(executorch PUBLIC ${_common_compile_options})
executorch_target_link_options_shared_lib(executorch)
target_compile_options(prim_ops_lib PUBLIC ${_common_compile_options})
executorch_target_link_options_shared_lib(prim_ops_lib)

#
# portable_ops_lib: A library to register core ATen ops using portable kernels,
Expand Down Expand Up @@ -805,7 +815,7 @@ install(
PATTERN "*.h"
)
install(
TARGETS executorch executorch_core
TARGETS prim_ops_lib executorch executorch_core
EXPORT ExecuTorchTargets
INCLUDES
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
Expand Down Expand Up @@ -1070,7 +1080,7 @@ if(EXECUTORCH_BUILD_SHARED)
# the WHOLE_ARCHIVE link feature, because these archives also reference each
# other plainly and CMake before 3.29 refuses to mix a feature with a plain
# reference to the same item.
target_link_libraries(executorch_shared PRIVATE executorch)
target_link_libraries(executorch_shared PRIVATE prim_ops_lib)
set(_executorch_shared_whole_archive executorch_core)
foreach(_ext_target
extension_data_loader extension_flat_tensor extension_named_data_map
Expand Down Expand Up @@ -1129,7 +1139,7 @@ endif()
# when it is named.
if(EXECUTORCH_ENABLE_EVENT_TRACER)
target_compile_definitions(executorch_core INTERFACE ET_EVENT_TRACER_ENABLED)
target_compile_definitions(executorch INTERFACE ET_EVENT_TRACER_ENABLED)
target_compile_definitions(prim_ops_lib INTERFACE ET_EVENT_TRACER_ENABLED)
if(TARGET executorch_shared)
target_compile_definitions(
executorch_shared INTERFACE ET_EVENT_TRACER_ENABLED
Expand Down Expand Up @@ -1452,7 +1462,7 @@ if(EXECUTORCH_BUILD_PYBIND)
if(EXECUTORCH_BUILD_SHARED)
target_link_libraries(util PRIVATE torch c10 executorch_shared)
else()
target_link_libraries(util PRIVATE torch c10 executorch extension_tensor)
target_link_libraries(util PRIVATE torch c10 prim_ops_lib extension_tensor)
endif()

# pybind portable_lib
Expand Down Expand Up @@ -1562,7 +1572,7 @@ if(EXECUTORCH_BUILD_PYBIND)
data_loader "extension/pybindings" "executorch/extension/pybindings"
)
else()
target_link_libraries(data_loader PRIVATE executorch)
target_link_libraries(data_loader PRIVATE prim_ops_lib)
endif()
install(TARGETS data_loader
LIBRARY DESTINATION executorch/extension/pybindings
Expand Down Expand Up @@ -1753,7 +1763,7 @@ install(TARGETS executorch_backends executorch_extensions executorch_kernels

if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
# Baseline libraries that executor_runner will link against.
set(_executor_runner_libs executorch extension_evalue_util
set(_executor_runner_libs prim_ops_lib extension_evalue_util
extension_runner_util gflags executorch_backends
)

Expand Down
2 changes: 1 addition & 1 deletion backends/cadence/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if(EXECUTORCH_CADENCE_CPU_RUNNER)
# Find prebuilt libraries. executorch package should contain portable_ops_lib,
# etdump, bundled_program.
find_package(executorch CONFIG REQUIRED)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)
executorch_target_link_options_shared_lib(portable_ops_lib)

target_include_directories(
Expand Down
2 changes: 1 addition & 1 deletion backends/cadence/fusion_g3/operators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ set(_aten_ops__srcs
"${EXECUTORCH_ROOT}/kernels/portable/cpu/pattern/unary_ufunc_realhbbf16_to_floathbf16.cpp"
)
add_library(aten_ops_cadence ${_aten_ops__srcs})
target_link_libraries(aten_ops_cadence PUBLIC executorch)
target_link_libraries(aten_ops_cadence PUBLIC prim_ops_lib)
target_link_libraries(aten_ops_cadence PRIVATE xa_nnlib)

# Let files say "include <executorch/path/to/header.h>".
Expand Down
4 changes: 2 additions & 2 deletions backends/cadence/generic/operators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ set(_aten_ops__srcs
"${EXECUTORCH_ROOT}/kernels/portable/cpu/util/select_copy_util.cpp"
)
add_library(aten_ops_cadence ${_aten_ops__srcs})
target_link_libraries(aten_ops_cadence PUBLIC executorch)
target_link_libraries(aten_ops_cadence PUBLIC prim_ops_lib)
target_link_libraries(aten_ops_cadence PRIVATE cadence_kernels)

# Let files say "include <executorch/path/to/header.h>".
Expand All @@ -90,7 +90,7 @@ target_include_directories(
${_common_include_directories}
)

target_link_libraries(custom_ops PUBLIC executorch)
target_link_libraries(custom_ops PUBLIC prim_ops_lib)
target_link_libraries(custom_ops PRIVATE cadence_kernels)

# Generate C++ bindings to register kernels into both PyTorch (for AOT) and
Expand Down
4 changes: 2 additions & 2 deletions backends/cadence/hifi/operators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ set(_aten_ops__srcs
"${EXECUTORCH_ROOT}/kernels/portable/cpu/util/delinearize_index.cpp"
)
add_library(aten_ops_cadence ${_aten_ops__srcs})
target_link_libraries(aten_ops_cadence PUBLIC executorch)
target_link_libraries(aten_ops_cadence PUBLIC prim_ops_lib)
target_link_libraries(aten_ops_cadence PRIVATE cadence_kernels)

# Let files say "include <executorch/path/to/header.h>".
Expand Down Expand Up @@ -159,7 +159,7 @@ target_include_directories(
${_common_include_directories}
)

target_link_libraries(custom_ops PUBLIC executorch)
target_link_libraries(custom_ops PUBLIC prim_ops_lib)
target_link_libraries(custom_ops PRIVATE cadence_kernels)

# Generate C++ bindings to register kernels into both PyTorch (for AOT) and
Expand Down
4 changes: 2 additions & 2 deletions backends/cadence/vision/operators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ set(_aten_ops__srcs
"${EXECUTORCH_ROOT}/kernels/portable/cpu/util/select_copy_util.cpp"
)
add_library(aten_ops_cadence ${_aten_ops__srcs})
target_link_libraries(aten_ops_cadence PUBLIC executorch)
target_link_libraries(aten_ops_cadence PUBLIC prim_ops_lib)
target_link_libraries(aten_ops_cadence PRIVATE cadence_kernels)

# Let files say "include <executorch/path/to/header.h>".
Expand Down Expand Up @@ -101,7 +101,7 @@ target_include_directories(
${_common_include_directories}
)

target_link_libraries(custom_ops PUBLIC executorch)
target_link_libraries(custom_ops PUBLIC prim_ops_lib)
target_link_libraries(custom_ops PRIVATE cadence_kernels)

# Generate C++ bindings to register kernels into both PyTorch (for AOT) and
Expand Down
2 changes: 1 addition & 1 deletion backends/mlx/examples/llm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set(_flatbuffers_include ${EXECUTORCH_ROOT}/third-party/flatbuffers/include)

list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

# As in examples/models/llama: point gflags_DIR at the copy the executorch build
# configured, since a separate find_package() project cannot see it.
Expand Down
2 changes: 1 addition & 1 deletion backends/qualcomm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64|AMD64")
"${CMAKE_INSTALL_LIBDIR}/executorch/backends/qualcomm/python"
)
else()
target_link_libraries(PyQnnManagerAdaptor PRIVATE executorch)
target_link_libraries(PyQnnManagerAdaptor PRIVATE prim_ops_lib)
endif()

pybind11_extension(PyQnnManagerAdaptor)
Expand Down
2 changes: 1 addition & 1 deletion devtools/bundled_program/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ add_library(
if(EXECUTORCH_BUILD_SHARED)
target_link_libraries(bundled_program PUBLIC executorch_shared)
else()
target_link_libraries(bundled_program PUBLIC executorch)
target_link_libraries(bundled_program PUBLIC prim_ops_lib)
endif()
target_include_directories(
bundled_program
Expand Down
2 changes: 1 addition & 1 deletion devtools/etdump/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if(EXECUTORCH_BUILD_SHARED)
executorch_target_shipped_runtime_path(etdump)
else()
target_link_libraries(etdump PUBLIC flatccrt)
target_link_libraries(etdump PRIVATE executorch)
target_link_libraries(etdump PRIVATE prim_ops_lib)
endif()

target_include_directories(
Expand Down
6 changes: 3 additions & 3 deletions docs/source/kernel-library-custom-aten-kernel.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ gen_selected_ops("" "${SELECT_OPS_LIST}" "")
# Look for functions.yaml associated with portable libs and generate C++ bindings
generate_bindings_for_kernels(FUNCTIONS_YAML ${EXECUTORCH_ROOT}/kernels/portable/functions.yaml)

# Prepare a C++ library called "generated_lib" with _kernel_lib being the portable library, executorch is a dependency of it.
gen_operators_lib("generated_lib" KERNEL_LIBS ${_kernel_lib} DEPS executorch)
# Prepare a C++ library called "generated_lib" with _kernel_lib being the portable library, prim_ops_lib is a dependency of it.
gen_operators_lib("generated_lib" KERNEL_LIBS ${_kernel_lib} DEPS prim_ops_lib)

# Link "generated_lib" into the application:
target_link_libraries(executorch_binary generated_lib)
Expand Down Expand Up @@ -276,7 +276,7 @@ add_library(custom_op_lib SHARED ${CMAKE_CURRENT_SOURCE_DIR}/custom_op.cpp)
target_include_directory(custom_op_lib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)

# Link ExecuTorch library
target_link_libraries(custom_op_lib PUBLIC executorch)
target_link_libraries(custom_op_lib PUBLIC prim_ops_lib)

# Define a binary target
add_executable(custom_op_runner PUBLIC main.cpp)
Expand Down
2 changes: 1 addition & 1 deletion examples/devtools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ set(_common_include_directories ${EXECUTORCH_ROOT}/..)
# Find prebuilt libraries. executorch package should contain portable_ops_lib,
# etdump, bundled_program.
find_package(executorch CONFIG REQUIRED)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)
executorch_target_link_options_shared_lib(portable_ops_lib)

target_include_directories(executorch INTERFACE ${_common_include_directories})
Expand Down
2 changes: 1 addition & 1 deletion examples/llm_server/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set(_json_include
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
find_package(Threads REQUIRED)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

# Older installed packages may omit this header-only interface target.
if(NOT TARGET extension_llm_session)
Expand Down
2 changes: 1 addition & 1 deletion examples/models/dinov2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
get_target_property(_executorch_imported executorch IMPORTED)
if(NOT _executorch_imported)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)
endif()

set(link_libraries executorch gflags)
Expand Down
2 changes: 1 addition & 1 deletion examples/models/gemma3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ find_package(gflags REQUIRED)
# Find `executorch` libraries, same as for gflags
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

set(link_libraries executorch gflags)
set(_srcs e2e_runner.cpp)
Expand Down
2 changes: 1 addition & 1 deletion examples/models/gemma4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ find_package(gflags REQUIRED)
# Find `executorch` libraries, same as for gflags
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

set(link_libraries executorch gflags)
set(_srcs e2e_runner.cpp)
Expand Down
2 changes: 1 addition & 1 deletion examples/models/gemma4_31b/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ find_package(Threads REQUIRED)
# executorch
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

set(link_libraries executorch gflags)

Expand Down
2 changes: 1 addition & 1 deletion examples/models/llama/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ find_package(gflags REQUIRED)
# cross-compiling (e.g., to Android) to work as well.
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

# llama_runner library
add_subdirectory(runner)
Expand Down
2 changes: 1 addition & 1 deletion examples/models/llava/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ find_package(gflags REQUIRED)
# find `executorch` libraries Same as for gflags
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

set(LINK_LIBS executorch gflags extension_llm_runner)
set(link_libraries ${LINK_LIBS})
Expand Down
4 changes: 2 additions & 2 deletions examples/models/muse-glimmer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ find_package(Threads REQUIRED)
# executorch
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

set(link_libraries executorch gflags)

Expand Down Expand Up @@ -137,7 +137,7 @@ target_link_libraries(dflash_runner PUBLIC ${link_libraries})

add_executable(sampling_test tests/sampling_test.cpp)
target_include_directories(sampling_test PUBLIC ${_common_include_directories})
target_link_libraries(sampling_test PUBLIC extension_tensor executorch)
target_link_libraries(sampling_test PUBLIC extension_tensor prim_ops_lib)

add_executable(dflash_timing_test tests/dflash_timing_test.cpp)
target_include_directories(
Expand Down
2 changes: 1 addition & 1 deletion examples/models/parakeet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
get_target_property(_executorch_imported executorch IMPORTED)
if(NOT _executorch_imported)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)
endif()

set(link_libraries executorch gflags)
Expand Down
2 changes: 1 addition & 1 deletion examples/models/qwen3_5_moe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ find_package(Threads REQUIRED)
# executorch
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

set(link_libraries executorch gflags)

Expand Down
2 changes: 1 addition & 1 deletion examples/models/silero_vad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
get_target_property(_executorch_imported executorch IMPORTED)
if(NOT _executorch_imported)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)
endif()

set(common_link_libraries executorch gflags)
Expand Down
2 changes: 1 addition & 1 deletion examples/models/sortformer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
get_target_property(_executorch_imported executorch IMPORTED)
if(NOT _executorch_imported)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)
endif()

set(link_libraries executorch gflags)
Expand Down
2 changes: 1 addition & 1 deletion examples/models/supertonic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ find_package(gflags REQUIRED)

list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

if(NOT TARGET mlxdelegate OR NOT TARGET mlx)
message(
Expand Down
2 changes: 1 addition & 1 deletion examples/models/voxtral/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ find_package(gflags REQUIRED)
# Find `executorch` libraries, same as for gflags
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

set(link_libraries executorch gflags)
set(_srcs multimodal.cpp)
Expand Down
2 changes: 1 addition & 1 deletion examples/models/voxtral_realtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ find_package(gflags REQUIRED)
# Find executorch libraries
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

set(link_libraries executorch gflags)

Expand Down
2 changes: 1 addition & 1 deletion examples/models/voxtral_tts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ find_package(gflags REQUIRED)
# ExecuTorch
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

set(link_libraries executorch gflags)

Expand Down
2 changes: 1 addition & 1 deletion examples/models/whisper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ find_package(gflags REQUIRED)

list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../..)
find_package(executorch CONFIG REQUIRED FIND_ROOT_PATH_BOTH)
executorch_target_link_options_shared_lib(executorch)
executorch_target_link_options_shared_lib(prim_ops_lib)

set(_link_libraries executorch gflags)
set(_srcs multimodal.cpp)
Expand Down
Loading
Loading