We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3015cf commit 7a10d4eCopy full SHA for 7a10d4e
CMakeLists.txt
@@ -38,7 +38,11 @@ target_link_libraries(${PROJECT_NAME} miniaudio)
38
# Compiling through the command line requires linking to -lpthread and -lm.
39
40
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "iOS" OR IOS)
41
- set_source_files_properties(${miniaudio_SOURCE_DIR}/miniaudio.c PROPERTIES COMPILE_FLAGS "-x objective-c")
+ configure_file(
42
+ ${miniaudio_SOURCE_DIR}/miniaudio.c
43
+ ${CMAKE_CURRENT_BINARY_DIR}/miniaudio.m
44
+ COPYONLY
45
+ )
46
target_link_libraries(miniaudio PUBLIC
47
"-framework AudioToolbox"
48
"-framework CoreAudio"
0 commit comments