Disable AVX on apple (because of apple silicon0

This commit is contained in:
Georg Hagen
2024-07-17 00:04:23 +02:00
parent 832de45e18
commit b5217ca9f5

View File

@@ -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()
endfunction()