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.
This commit is contained in:
雪竜 (Tommy Li)
2026-05-29 02:58:30 -05:00
committed by David Reid
parent 9d98e9f887
commit 4844874cda
+4
View File
@@ -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