From 7c2ace05ab0bfd172e8f58d78100b60434d27baf Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 15 Jan 2025 15:56:09 +0100 Subject: [PATCH] Cleanup: Correct logic for static Embree library SIMD libs We are only using a dynamic library so this doesn't matter in practice, just better to avoid having wrong examples in the code. Pull Request: https://projects.blender.org/blender/blender/pulls/133105 --- build_files/cmake/Modules/FindEmbree.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_files/cmake/Modules/FindEmbree.cmake b/build_files/cmake/Modules/FindEmbree.cmake index d5faf89db6f..0ab4a006012 100644 --- a/build_files/cmake/Modules/FindEmbree.cmake +++ b/build_files/cmake/Modules/FindEmbree.cmake @@ -58,7 +58,7 @@ if(EMBREE_INCLUDE_DIR) endif() if(EMBREE_STATIC_LIB) - if(NOT (("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64") OR (APPLE AND ("${CMAKE_OSX_ARCHITECTURES}" STREQUAL "arm64")))) + if((CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64") OR (APPLE AND (CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64"))) set(_embree_SIMD_COMPONENTS embree_sse42 embree_avx