aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt4
-rw-r--r--linden/indra/cmake/OPENAL.cmake15
2 files changed, 14 insertions, 5 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 2974b10..0c90898 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,5 +1,9 @@
12009-04-20 Jacek Antonelli <jacek.antonelli@gmail.com> 12009-04-20 Jacek Antonelli <jacek.antonelli@gmail.com>
2 2
3 * linden/indra/cmake/OPENAL.cmake:
4 Help (force) Mac find the right OpenAL lib and header dir.
5
6
3 * linden/install.xml: 7 * linden/install.xml:
4 Mac viewer uses Thomas Shikami's OpenAL libs. 8 Mac viewer uses Thomas Shikami's OpenAL libs.
5 9
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!")