From aa6dac7eb1f69578f354ffa66a0c365f248e60a0 Mon Sep 17 00:00:00 2001 From: hdj Date: Fri, 29 Nov 2024 10:11:07 +0100 Subject: [PATCH] Exclude unsupported compiler options that would warn in Xcode 15 but error in Xcode 16 --- cmake/SfizzConfig.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmake/SfizzConfig.cmake b/cmake/SfizzConfig.cmake index be2eb87c2..f09d0a8a9 100644 --- a/cmake/SfizzConfig.cmake +++ b/cmake/SfizzConfig.cmake @@ -100,9 +100,11 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") if(PROJECT_SYSTEM_PROCESSOR MATCHES "(i.86|x86_64)") add_compile_options(-msse2) elseif(PROJECT_SYSTEM_PROCESSOR MATCHES "(arm.*)") - add_compile_options(-mfpu=neon) - if(NOT ANDROID) - add_compile_options(-mfloat-abi=hard) + if(NOT APPLE) + add_compile_options(-mfpu=neon) + if(NOT ANDROID) + add_compile_options(-mfloat-abi=hard) + endif() endif() endif() elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")