11diff --git a/CMakeLists.txt b/CMakeLists.txt
2- index 1ff85b538..c3ef2183f 100644
2+ index f0b3410ae..1e3cb8178 100644
33--- a/CMakeLists.txt
44+++ b/CMakeLists.txt
5- @@ -253 ,7 +253 ,7 @@ ENDIF()
5+ @@ -337 ,7 +337 ,7 @@ ENDIF()
66 # ---[ Build flags
77 IF(NOT CMAKE_SYSTEM_NAME)
88 MESSAGE(FATAL_ERROR "CMAKE_SYSTEM_NAME not defined")
@@ -11,21 +11,21 @@ index 1ff85b538..c3ef2183f 100644
1111 MESSAGE(FATAL_ERROR "Unrecognized CMAKE_SYSTEM_NAME value \"${CMAKE_SYSTEM_NAME}\"")
1212 ENDIF()
1313 IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
14- @@ -763,7 +763,12 @@ IF(XNNPACK_BUILD_LIBRARY)
15- TARGET_LINK_LIBRARIES(operator-run PRIVATE xnnpack-base logging)
14+ @@ -848,7 +848,12 @@ IF(XNNPACK_BUILD_LIBRARY)
1615 TARGET_LINK_LIBRARIES(operator-utils PRIVATE xnnpack-base logging)
17- TARGET_LINK_LIBRARIES(subgraph PRIVATE xnnpack-base allocator logging memory mutex operators operator-run)
18- - TARGET_LINK_LIBRARIES(XNNPACK PRIVATE allocator cache hardware-config indirection logging memory microkernel-utils microparams-init mutex normalization operators operator-run operator-utils packing microkernels-prod subgraph)
16+ TARGET_LINK_LIBRARIES(reference-ukernels PRIVATE xnnpack-base)
17+ TARGET_LINK_LIBRARIES(subgraph PRIVATE xnnpack-base allocator logging memory mutex operators operator-run datatype)
18+ - TARGET_LINK_LIBRARIES(XNNPACK PRIVATE xnnpack-base allocator cache hardware-config indirection memory microkernel-utils microparams-init mutex normalization operators operator-run operator-utils packing microkernels-prod subgraph datatype reference-ukernels)
1919+ IF(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
20- + # omit microkernels-prod as the list is manually created by ORT in cmake/external/xnnpack.cmake
21- + TARGET_LINK_LIBRARIES(XNNPACK PRIVATE allocator cache hardware-config indirection logging memory microkernel-utils microparams-init mutex normalization operators operator-run operator-utils packing subgraph)
20+ + # omit microkernels-prod as the list is manually created by ORT in cmake/external/xnnpack.cmake
21+ + TARGET_LINK_LIBRARIES(XNNPACK PRIVATE xnnpack-base allocator cache hardware-config indirection memory microkernel-utils microparams-init mutex normalization operators operator-run operator-utils packing subgraph datatype reference-ukernels )
2222+ ELSE()
23- + TARGET_LINK_LIBRARIES(XNNPACK PRIVATE allocator cache hardware-config indirection logging memory microkernel-utils microparams-init mutex normalization operators operator-run operator-utils packing microkernels-prod subgraph)
24- + ENDIF()
25- TARGET_LINK_LIBRARIES(XNNPACK PUBLIC xnnpack-base )
23+ + TARGET_LINK_LIBRARIES(XNNPACK PRIVATE xnnpack-base allocator cache hardware-config indirection memory microkernel-utils microparams-init mutex normalization operators operator-run operator-utils packing microkernels-prod subgraph datatype reference-ukernels )
24+ + ENDIF()
25+ TARGET_LINK_LIBRARIES(XNNPACK PUBLIC pthreadpool logging )
2626 SET_TARGET_PROPERTIES(XNNPACK PROPERTIES C_EXTENSIONS YES)
2727 ENDIF()
28- @@ -772 ,7 +777 ,8 @@ IF(NOT MSVC)
28+ @@ -857 ,7 +862 ,8 @@ IF(NOT MSVC)
2929 ENDIF()
3030 IF(XNNPACK_TARGET_PROCESSOR STREQUAL "arm")
3131 SET_PROPERTY(SOURCE ${ALL_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -marm ")
0 commit comments