vcpkg/ports/libtorch/fix-fbgemm-arch-check.patch

12 lines
459 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -913,7 +913,7 @@ include(ExternalProject)
# ---[ Dependencies ---[ FBGEMM doesn't work on x86 32bit and
# CMAKE_SYSTEM_PROCESSOR thinks its 64bit
-if(USE_FBGEMM AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|aarch64)$")
+if(USE_FBGEMM AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64|aarch64|ARM64)$")
message(WARNING
"x86_64 or aarch64 required for FBGEMM. "
"Not compiling with FBGEMM. "