Skip to content

Commit

Permalink
move CoreFoundation to a more reasonable place
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMorc committed Aug 23, 2023
1 parent 1bb9ac8 commit f40393e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,6 @@ if (ENABLE_VOICE)

target_link_libraries(abaddon ${CMAKE_DL_LIBS})

if (APPLE)
target_link_libraries(abaddon "-framework CoreFoundation")
target_link_libraries(abaddon "-framework CoreAudio")
target_link_libraries(abaddon "-framework AudioToolbox")
endif ()

endif ()

if (${ENABLE_NOTIFICATION_SOUNDS})
Expand All @@ -180,6 +174,13 @@ if (USE_MINIAUDIO)
HINTS subprojects
PATH_SUFFIXES miniaudio
REQUIRED)

if (APPLE)
target_link_libraries(abaddon "-framework CoreFoundation")
target_link_libraries(abaddon "-framework CoreAudio")
target_link_libraries(abaddon "-framework AudioToolbox")
endif ()

target_include_directories(abaddon PUBLIC ${MINIAUDIO_INCLUDE_DIR})
target_compile_definitions(abaddon PRIVATE WITH_MINIAUDIO)
endif ()

0 comments on commit f40393e

Please sign in to comment.