mirror of
https://github.com/mackron/miniaudio.git
synced 2026-07-22 12:52:43 +02:00
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:
committed by
David Reid
parent
9d98e9f887
commit
4844874cda
@@ -500,6 +500,10 @@ if (UNIX)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
enable_language(OBJC)
|
||||||
|
set_source_files_properties(miniaudio.c PROPERTIES LANGUAGE OBJC)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Static Libraries
|
# Static Libraries
|
||||||
add_library(miniaudio
|
add_library(miniaudio
|
||||||
|
|||||||
Reference in New Issue
Block a user