From 4844874cdaa1b3841487bfcb291d02d8c1b8bac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=AA=E7=AB=9C=20=28Tommy=20Li=29?= Date: Fri, 29 May 2026 02:58:30 -0500 Subject: [PATCH] Set implementation file as Objective-C in CMake for Apple platforms This fixes CMake build targeting iOS due to usage of AVFoundation that requires Objective-C support. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d246a59c..39e771f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -500,6 +500,10 @@ if (UNIX) endif() endif() +if(APPLE) + enable_language(OBJC) + set_source_files_properties(miniaudio.c PROPERTIES LANGUAGE OBJC) +endif() # Static Libraries add_library(miniaudio