opnsense-ports/misc/py-pytorch/files/patch-cmake_Dependencies.cmake
Franco Fichtner a4d782b9cf */*: sync with upstream
Taken from: FreeBSD
2024-09-03 10:17:22 +02:00

11 lines
585 B
CMake

--- cmake/Dependencies.cmake.orig 2024-07-24 18:41:35 UTC
+++ cmake/Dependencies.cmake
@@ -304,7 +304,7 @@ if(USE_NNPACK OR USE_PYTORCH_QNNPACK OR USE_XNNPACK)
set(DISABLE_NNPACK_AND_FAMILY ON)
endif()
else()
- if(NOT IOS AND NOT (CMAKE_SYSTEM_NAME MATCHES "^(Android|Linux|Darwin|Windows)$"))
+ if(NOT IOS AND NOT (CMAKE_SYSTEM_NAME MATCHES "^(Android|Linux|FreeBSD|Darwin|Windows)$"))
message(WARNING
"Target platform \"${CMAKE_SYSTEM_NAME}\" is not supported in {Q/X}NNPACK. "
"Supported platforms are Android, iOS, Linux, and macOS. "