aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-20 22:29:46 -0500
committerJacek Antonelli2009-04-20 22:29:46 -0500
commit640cd96159d0d3329a926954cffc4d8b09a06002 (patch)
treea9fe3800a508f0664e205b98e74969c31323ed3a /linden/indra/cmake
parentMac viewer uses Thomas Shikami's OpenAL libs. (diff)
downloadmeta-impy-640cd96159d0d3329a926954cffc4d8b09a06002.zip
meta-impy-640cd96159d0d3329a926954cffc4d8b09a06002.tar.gz
meta-impy-640cd96159d0d3329a926954cffc4d8b09a06002.tar.bz2
meta-impy-640cd96159d0d3329a926954cffc4d8b09a06002.tar.xz
Help (force) Mac to use the right OpenAL lib and header dir.
Diffstat (limited to 'linden/indra/cmake')
-rw-r--r--linden/indra/cmake/OPENAL.cmake15
1 files changed, 10 insertions, 5 deletions
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake
index 908021c..94fa75d 100644
--- a/linden/indra/cmake/OPENAL.cmake
+++ b/linden/indra/cmake/OPENAL.cmake
@@ -20,8 +20,9 @@ if (OPENAL)
20 elseif (DARWIN) 20 elseif (DARWIN)
21 # Look for for system's OpenAL.framework 21 # Look for for system's OpenAL.framework
22 find_library(OPENAL_LIB 22 find_library(OPENAL_LIB
23 NAMES OpenAL openal 23 NAMES openal.1
24 PATHS ${ARCH_PREBUILT_DIRS_RELEASE} 24 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
25 NO_DEFAULT_PATH
25 ) 26 )
26 else (WINDOWS) 27 else (WINDOWS)
27 set(OPENAL_LIB openal) 28 set(OPENAL_LIB openal)
@@ -37,10 +38,14 @@ if (OPENAL)
37 38
38 # OPENAL_INCLUDE_DIR 39 # OPENAL_INCLUDE_DIR
39 40
40 find_path(OPENAL_INCLUDE_DIR 41 if (DARWIN)
41 NAMES al.h 42 set(OPENAL_INCLUDE_DIR "${LIBS_PREBUILT_DIR}/include/AL")
42 PATHS ${LIBS_PREBUILT_DIR}/include/AL 43 else (DARWIN)
43 ) 44 find_path(OPENAL_INCLUDE_DIR
45 NAMES al.h
46 PATHS ${LIBS_PREBUILT_DIR}/include/AL
47 )
48 endif (DARWIN)
44 49
45 if (NOT OPENAL_INCLUDE_DIR) 50 if (NOT OPENAL_INCLUDE_DIR)
46 message(FATAL_ERROR "al.h not found!") 51 message(FATAL_ERROR "al.h not found!")