1
1
diff --git a/CMakeLists.txt b/CMakeLists.txt
2
- index 1ff85b538..c3ef2183f 100644
2
+ index f0b3410ae..1e3cb8178 100644
3
3
--- a/CMakeLists.txt
4
4
+++ b/CMakeLists.txt
5
- @@ -253 ,7 +253 ,7 @@ ENDIF()
5
+ @@ -337 ,7 +337 ,7 @@ ENDIF()
6
6
# ---[ Build flags
7
7
IF(NOT CMAKE_SYSTEM_NAME)
8
8
MESSAGE(FATAL_ERROR "CMAKE_SYSTEM_NAME not defined")
@@ -11,21 +11,21 @@ index 1ff85b538..c3ef2183f 100644
11
11
MESSAGE(FATAL_ERROR "Unrecognized CMAKE_SYSTEM_NAME value \"${CMAKE_SYSTEM_NAME}\"")
12
12
ENDIF()
13
13
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)
16
15
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)
19
19
+ 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 )
22
22
+ 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 )
26
26
SET_TARGET_PROPERTIES(XNNPACK PROPERTIES C_EXTENSIONS YES)
27
27
ENDIF()
28
- @@ -772 ,7 +777 ,8 @@ IF(NOT MSVC)
28
+ @@ -857 ,7 +862 ,8 @@ IF(NOT MSVC)
29
29
ENDIF()
30
30
IF(XNNPACK_TARGET_PROCESSOR STREQUAL "arm")
31
31
SET_PROPERTY(SOURCE ${ALL_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -marm ")
0 commit comments