Skip to content

Commit 7a10d4e

Browse files
committed
IOS I HATE YOU
1 parent a3015cf commit 7a10d4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ target_link_libraries(${PROJECT_NAME} miniaudio)
3838
# Compiling through the command line requires linking to -lpthread and -lm.
3939

4040
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "iOS" OR IOS)
41-
set_source_files_properties(${miniaudio_SOURCE_DIR}/miniaudio.c PROPERTIES COMPILE_FLAGS "-x objective-c")
41+
configure_file(
42+
${miniaudio_SOURCE_DIR}/miniaudio.c
43+
${CMAKE_CURRENT_BINARY_DIR}/miniaudio.m
44+
COPYONLY
45+
)
4246
target_link_libraries(miniaudio PUBLIC
4347
"-framework AudioToolbox"
4448
"-framework CoreAudio"

0 commit comments

Comments
 (0)