aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cecb7e67..fd532dca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -814,12 +814,15 @@ ENDIF()
# Check CoreAudio backend
IF(ALSOFT_BACKEND_COREAUDIO)
- CHECK_INCLUDE_FILE(/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h HAVE_COREAUDIO_FRAMEWORK)
- IF(HAVE_COREAUDIO_FRAMEWORK)
+ FIND_LIBRARY(COREAUDIO_FRAMEWORK
+ NAMES CoreAudio
+ PATHS /System/Library/Frameworks
+ )
+ IF(COREAUDIO_FRAMEWORK)
SET(HAVE_COREAUDIO 1)
SET(ALC_OBJS ${ALC_OBJS} Alc/backends/coreaudio.c)
SET(BACKENDS "${BACKENDS} CoreAudio,")
- SET(EXTRA_LIBS /System/Library/Frameworks/CoreAudio.framework ${EXTRA_LIBS})
+ SET(EXTRA_LIBS ${COREAUDIO_FRAMEWORK} ${EXTRA_LIBS})
SET(EXTRA_LIBS /System/Library/Frameworks/AudioUnit.framework ${EXTRA_LIBS})
SET(EXTRA_LIBS /System/Library/Frameworks/ApplicationServices.framework ${EXTRA_LIBS})