Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > f85ad998e177b64c2c11c92c44e50a69 > files > 1

openimageio-2.4.10.0-1.mga9.src.rpm

From 699a2c4ec18981ec04a743d3727b49843785e5e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jani=20V=C3=A4limaa?= <wally@mageia.org>
Date: Sun, 1 Jan 2023 17:18:43 +0200
Subject: [PATCH] Allow building without ARM NEON support

---
 CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b89f77..0c0e7ae 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,6 +118,11 @@ if (NOT OIIO_THREAD_ALLOW_DCLP)
     add_definitions ("-DOIIO_THREAD_ALLOW_DCLP=0")
 endif ()
 
+option (OIIO_NO_NEON "Make sure ARM NEON support is disabled" OFF)
+if (OIIO_NO_NEON)
+    add_definitions ("-DOIIO_NO_NEON=1")
+endif()
+
 set (TEX_BATCH_SIZE "" CACHE STRING "Force TextureSystem SIMD batch size (e.g. 16)")
 if (TEX_BATCH_SIZE)
     add_definitions ("-DOIIO_TEXTURE_SIMD_BATCH_WIDTH=${TEX_BATCH_SIZE}")
-- 
2.39.0