Skip to content

Commit 57b19a8

Browse files
committed
llama cmake
1 parent 2ed44ce commit 57b19a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/models/llama/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ target_link_options_shared_lib(quantized_ops_lib)
111111
list(APPEND link_libraries quantized_kernels quantized_ops_lib)
112112

113113
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
114-
list(APPEND link_libraries $<LINK_LIBRARY:WHOLE_ARCHIVE,custom_ops>)
114+
target_link_options_shared_lib(custom_ops)
115+
list(APPEND link_libraries custom_ops)
115116
endif()
116117

117118
if(EXECUTORCH_BUILD_TORCHAO)

0 commit comments

Comments
 (0)