From 1dd8aa9b6ff21a6282c67107d6985db69809be1d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 23 Jan 2012 03:45:04 -0800 Subject: Link with AudioToolbox.framework for the CoreAudio backend if it's found --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 752abe43..1abd4d40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -615,6 +615,18 @@ IF(COREAUDIO) SET(EXTRA_LIBS /System/Library/Frameworks/CoreAudio.framework ${EXTRA_LIBS}) SET(EXTRA_LIBS /System/Library/Frameworks/AudioUnit.framework ${EXTRA_LIBS}) SET(EXTRA_LIBS /System/Library/Frameworks/ApplicationServices.framework ${EXTRA_LIBS}) + + # Some versions of OSX may need the AudioToolbox framework. Add it if + # it's found. + FIND_LIBRARY(AUDIOTOOLBOX_LIBRARY + NAMES AudioToolbox + PATHS ~/Library/Frameworks + /Library/Frameworks + /System/Library/Frameworks + ) + IF(AUDIOTOOLBOX_LIBRARY) + SET(EXTRA_LIBS ${AUDIOTOOLBOX_LIBRARY} ${EXTRA_LIBS}) + ENDIF() ENDIF() ENDIF() IF(REQUIRE_COREAUDIO AND NOT HAVE_COREAUDIO) -- cgit v1.2.3