diff --git a/source/blender/imbuf/CMakeLists.txt b/source/blender/imbuf/CMakeLists.txt index 62f9310355a..a766eb9df0b 100644 --- a/source/blender/imbuf/CMakeLists.txt +++ b/source/blender/imbuf/CMakeLists.txt @@ -88,6 +88,15 @@ set(LIB ) if(WITH_IMAGE_OPENEXR) + # Keep until APPLE/ARM libraries are updated. + if(APPLE) + if(CMAKE_OSX_ARCHITECTURES MATCHES arm64) + list(APPEND INC_SYS + ${IMATH_INCLUDE_DIRS} + ) + endif() + endif() + list(APPEND LIB bf_imbuf_openexr ) diff --git a/source/blender/imbuf/intern/oiio/CMakeLists.txt b/source/blender/imbuf/intern/oiio/CMakeLists.txt index 3ed76ccd1ea..e2133efe670 100644 --- a/source/blender/imbuf/intern/oiio/CMakeLists.txt +++ b/source/blender/imbuf/intern/oiio/CMakeLists.txt @@ -36,6 +36,15 @@ if(WITH_PUGIXML) endif() if(WITH_IMAGE_OPENEXR) + # Keep until APPLE/ARM libraries are updated. + if(APPLE) + if(CMAKE_OSX_ARCHITECTURES MATCHES arm64) + list(APPEND INC_SYS + ${IMATH_INCLUDE_DIRS} + ) + endif() + endif() + list(APPEND INC_SYS ${OPENEXR_INCLUDE_DIRS} )