Skip to content

Commit c4c3a35

Browse files
committed
set INTERFACE_LINK_LIBARIES for extension_threadpool
Ran into this when adding optimized size test in following PR. ghstack-source-id: cb8b6d0 ghstack-comment-id: 2761912646 Pull-Request-resolved: pytorch/executorch#9739
1 parent b0238ce commit c4c3a35

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/cmake/executorch-config.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ endif()
149149
if(TARGET coremldelegate)
150150
set_target_properties(
151151
coremldelegate PROPERTIES INTERFACE_LINK_LIBRARIES
152-
"coreml_inmemoryfs;coreml_util"
152+
"coreml_inmemoryfs;coreml_util"
153153
)
154154
endif()
155155

@@ -167,4 +167,8 @@ if(TARGET optimized_native_cpu_ops_lib)
167167
endif()
168168
if(TARGET extension_threadpool)
169169
target_compile_definitions(extension_threadpool INTERFACE ET_USE_THREADPOOL)
170+
set_target_properties(
171+
extension_threadpool PROPERTIES INTERFACE_LINK_LIBRARIES
172+
"cpuinfo;pthreadpool"
173+
)
170174
endif()

0 commit comments

Comments
 (0)