-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve https://bugs.gentoo.org/943501 Signed-off-by: wangjiezhe <wangjiezhe@gmail.com>
- Loading branch information
1 parent
f3c9405
commit 9d0a0a6
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake | ||
index 44eed3a831b..a5dc9753bed 100644 | ||
--- a/cmake/Dependencies.cmake | ||
+++ b/cmake/Dependencies.cmake | ||
@@ -569,7 +569,7 @@ if(USE_XNNPACK AND NOT USE_SYSTEM_XNNPACK) | ||
|
||
include_directories(SYSTEM ${XNNPACK_INCLUDE_DIR}) | ||
list(APPEND Caffe2_DEPENDENCY_LIBS XNNPACK) | ||
-elseif(NOT TARGET XNNPACK AND USE_SYSTEM_XNNPACK) | ||
+elseif(NOT TARGET XNNPACK AND USE_XNNPACK AND USE_SYSTEM_XNNPACK) | ||
add_library(XNNPACK SHARED IMPORTED) | ||
find_library(XNNPACK_LIBRARY XNNPACK) | ||
set_property(TARGET XNNPACK PROPERTY IMPORTED_LOCATION "${XNNPACK_LIBRARY}") |