From 4d01487fc7bbcb4796b8329589daac0f5867a109 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 10 Apr 2009 19:52:53 -0500 Subject: Help Mac find the right libalut.0.dylib. --- linden/indra/cmake/OPENAL.cmake | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'linden/indra') diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake index f06a38e..908021c 100644 --- a/linden/indra/cmake/OPENAL.cmake +++ b/linden/indra/cmake/OPENAL.cmake @@ -1,5 +1,8 @@ # -*- cmake -*- +include(Variables) +include(Linking) + set(OPENAL ON CACHE BOOL "Enable OpenAL") @@ -54,7 +57,13 @@ if (OPENAL) NAMES alut freealut PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release ) - else (WINDOWS) + elseif (DARWIN) + find_library( ALUT_LIB + NAMES alut.0 + PATHS ${ARCH_PREBUILT_DIRS_RELEASE} + NO_DEFAULT_PATH + ) + else (WINDOWS) set(ALUT_LIB alut) endif (WINDOWS) -- cgit v1.1