Skip to content

Commit 94c4b6e

Browse files
committed
llama demo should work
1 parent 0f9792f commit 94c4b6e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/models/llama/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ find_package(gflags REQUIRED)
8080
# find `executorch` libraries Same as for gflags
8181
set(executorch_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../../lib/cmake/ExecuTorch)
8282
find_package(executorch CONFIG REQUIRED)
83-
target_link_options_shared_lib(executorch)
83+
target_link_options_shared_lib(prim_ops_lib)
8484

8585
# llama_runner library
8686
add_subdirectory(runner)
8787

88-
set(link_libraries executorch gflags)
88+
set(link_libraries prim_ops_lib gflags)
8989
set(_srcs main.cpp)
9090

9191
if(EXECUTORCH_BUILD_KERNELS_OPTIMIZED)

examples/models/llava/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ endif()
8989
# find `executorch` libraries Same as for gflags
9090
set(executorch_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../../lib/cmake/ExecuTorch)
9191
find_package(executorch CONFIG REQUIRED)
92-
target_link_options_shared_lib(executorch)
92+
target_link_options_shared_lib(prim_ops_lib)
9393

9494
# llava_runner library
9595
add_subdirectory(runner)

tools/cmake/executorch-config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ endforeach()
5454
# If we reach here, ET required libraries are found.
5555
set(EXECUTORCH_FOUND ON)
5656

57-
target_link_libraries(executorch INTERFACE executorch_core)
57+
target_link_libraries(prim_ops_lib INTERFACE executorch_core)
5858

5959
if(CMAKE_BUILD_TYPE MATCHES "Debug")
6060
set(FLATCCRT_LIB flatccrt_d)

0 commit comments

Comments
 (0)