From b5217ca9f55a0ebd0a3804634c338f5e6aa73ab3 Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Wed, 17 Jul 2024 00:04:23 +0200 Subject: [PATCH] Disable AVX on apple (because of apple silicon0 --- 3rdParty/glm/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdParty/glm/CMakeLists.txt b/3rdParty/glm/CMakeLists.txt index bab40a1..9428b93 100644 --- a/3rdParty/glm/CMakeLists.txt +++ b/3rdParty/glm/CMakeLists.txt @@ -19,10 +19,10 @@ function(SetGlmDefines TARGET) target_compile_definitions(${TARGET} PUBLIC GLM_ENABLE_EXPERIMENTAL) target_compile_definitions(${TARGET} PUBLIC GLM_FORCE_ALIGNED_GENTYPES) - if (NOT ANDROID AND NOT IOS) + if (NOT ANDROID AND NOT APPLE) # TODO check target architecture first target_compile_definitions(${TARGET} PUBLIC GLM_FORCE_AVX2) else () target_compile_definitions(${TARGET} PUBLIC GLM_FORCE_INTRINSICS) endif () -endfunction() \ No newline at end of file +endfunction()