File tree Expand file tree Collapse file tree 4 files changed +6
-18
lines changed Expand file tree Collapse file tree 4 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -80,14 +80,12 @@ find_package(gflags REQUIRED)
80
80
# find `executorch` libraries Same as for gflags
81
81
set (executorch_DIR ${CMAKE_CURRENT_BINARY_DIR} /../../../lib/cmake/ExecuTorch )
82
82
find_package (executorch CONFIG REQUIRED )
83
- if (CMAKE_TOOLCHAIN_IOS OR ANDROID )
84
- target_link_options_shared_lib (executorch )
85
- endif ()
83
+ target_link_options_shared_lib (executorch )
86
84
87
85
# llama_runner library
88
86
add_subdirectory (runner )
89
87
90
- set (link_libraries gflags )
88
+ set (link_libraries executorch gflags )
91
89
set (_srcs main.cpp )
92
90
93
91
if (EXECUTORCH_BUILD_KERNELS_OPTIMIZED )
@@ -225,9 +223,5 @@ target_include_directories(
225
223
target_link_libraries (llama_main PUBLIC llama_runner ${link_libraries} )
226
224
target_compile_options (llama_main PUBLIC ${_common_compile_options} )
227
225
228
- if (APPLE )
229
- target_link_options_shared_lib (executorch )
230
- endif ()
231
-
232
226
# Print all summary
233
227
executorch_print_configuration_summary ()
Original file line number Diff line number Diff line change 52
52
add_library (llama_runner SHARED ${_llama_runner__srcs} )
53
53
endif ()
54
54
55
- set (llama_runner_deps executorch extension_data_loader extension_module
55
+ set (llama_runner_deps executorch_core extension_data_loader extension_module
56
56
extension_tensor
57
57
)
58
58
Original file line number Diff line number Diff line change @@ -89,14 +89,12 @@ endif()
89
89
# find `executorch` libraries Same as for gflags
90
90
set (executorch_DIR ${CMAKE_CURRENT_BINARY_DIR} /../../../lib/cmake/ExecuTorch )
91
91
find_package (executorch CONFIG REQUIRED )
92
- if (CMAKE_TOOLCHAIN_IOS OR ANDROID )
93
- target_link_options_shared_lib (executorch )
94
- endif ()
92
+ target_link_options_shared_lib (executorch )
95
93
96
94
# llava_runner library
97
95
add_subdirectory (runner )
98
96
99
- set (LINK_LIBS gflags )
97
+ set (LINK_LIBS executorch gflags )
100
98
if (NOT LLAVA_RUNNER_NO_TORCH_DUMMY_IMAGE )
101
99
list (APPEND LINK_LIBS torch )
102
100
endif ()
@@ -212,9 +210,5 @@ target_include_directories(llava_main PUBLIC ${_common_include_directories})
212
210
target_link_libraries (llava_main PUBLIC llava_runner ${link_libraries} )
213
211
target_compile_options (llava_main PUBLIC ${_common_compile_options} )
214
212
215
- if (APPLE )
216
- target_link_options_shared_lib (executorch )
217
- endif ()
218
-
219
213
# Print all summary
220
214
executorch_print_configuration_summary ()
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ add_subdirectory(
40
40
41
41
add_library (llava_runner STATIC ${_llava_runner__srcs} )
42
42
43
- set (llava_runner_deps executorch extension_data_loader extension_llm_runner
43
+ set (llava_runner_deps executorch_core extension_data_loader extension_llm_runner
44
44
extension_module extension_tensor
45
45
)
46
46
You can’t perform that action at this time.
0 commit comments