File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,12 @@ endforeach()
119119
120120# TODO: investigate use of install(EXPORT) to cleanly handle
121121# target_compile_options/target_compile_definitions for everything.
122- if (TARGET cpublas)
122+ if (TARGET extension_parallel)
123+ set_target_properties (
124+ extension_parallel PROPERTIES INTERFACE_LINK_LIBRARIES extension_threadpool
125+ )
126+ endif ()
127+ if (TARGET cpublas)
123128 set_target_properties (
124129 cpublas PROPERTIES INTERFACE_LINK_LIBRARIES extension_parallel
125130 )
Original file line number Diff line number Diff line change 1515# ~~~
1616# It should also be cmake-lint clean.
1717#
18- cmake_minimum_required (VERSION 3.19)
18+ cmake_minimum_required (VERSION 3.24) # 3.24 is required for WHOLE_ARCHIVE
1919project (llama_runner)
2020
2121# Duplicating options as root CMakeLists.txt
@@ -111,7 +111,7 @@ target_link_options_shared_lib(quantized_ops_lib)
111111list (APPEND link_libraries quantized_kernels quantized_ops_lib)
112112
113113if (EXECUTORCH_BUILD_KERNELS_CUSTOM)
114- list (APPEND link_libraries custom_ops)
114+ list (APPEND link_libraries $<LINK_LIBRARY:WHOLE_ARCHIVE, custom_ops> )
115115endif ()
116116
117117if (EXECUTORCH_BUILD_TORCHAO)
You can’t perform that action at this time.
0 commit comments