diff options
Diffstat (limited to 'vcpkg/ports/torch-th/fix-arm64-osx-config.patch')
| -rw-r--r-- | vcpkg/ports/torch-th/fix-arm64-osx-config.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/torch-th/fix-arm64-osx-config.patch b/vcpkg/ports/torch-th/fix-arm64-osx-config.patch new file mode 100644 index 0000000..de6b001 --- /dev/null +++ b/vcpkg/ports/torch-th/fix-arm64-osx-config.patch @@ -0,0 +1,13 @@ +diff --git a/lib/TH/cmake/FindARM.cmake b/lib/TH/cmake/FindARM.cmake +index 2dcb2a2..9d68601 100644 +--- a/lib/TH/cmake/FindARM.cmake ++++ b/lib/TH/cmake/FindARM.cmake +@@ -45,7 +45,7 @@ ELSEIF(CMAKE_SYSTEM_NAME MATCHES "Darwin") + CPUINFO) + + #neon instruction can be found on the majority part of modern ARM processor +- STRING(REGEX REPLACE "^.*(neon).*$" "\\1" NEON_THERE ${CPUINFO}) ++ STRING(REGEX REPLACE "^.*(neon).*$" "\\1" NEON_THERE "${CPUINFO}") + STRING(COMPARE EQUAL "neon" "${NEON_THERE}" NEON_TRUE) + IF (NEON_TRUE) + set(NEON_FOUND true CACHE BOOL "NEON available on host") |