aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/OPENAL.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/OPENAL.cmake')
-rw-r--r--linden/indra/cmake/OPENAL.cmake36
1 files changed, 17 insertions, 19 deletions
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake
index 5e71f66..f06a38e 100644
--- a/linden/indra/cmake/OPENAL.cmake
+++ b/linden/indra/cmake/OPENAL.cmake
@@ -10,16 +10,18 @@ if (OPENAL)
10 # OPENAL_LIB 10 # OPENAL_LIB
11 11
12 if (WINDOWS) 12 if (WINDOWS)
13 find_library(OPENAL_LIB 13 find_library(OPENAL_LIB
14 NAMES openal openal32 OpenAL OpenAL32 wrap_oal 14 NAMES openal32
15 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release 15 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release
16 ) 16 )
17 17 elseif (DARWIN)
18 # Look for for system's OpenAL.framework
19 find_library(OPENAL_LIB
20 NAMES OpenAL openal
21 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
22 )
18 else (WINDOWS) 23 else (WINDOWS)
19 find_library(OPENAL_LIB 24 set(OPENAL_LIB openal)
20 NAMES openal openal32 OpenAL OpenAL32 wrap_oal
21 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
22 )
23 endif (WINDOWS) 25 endif (WINDOWS)
24 26
25 if (NOT OPENAL_LIB) 27 if (NOT OPENAL_LIB)
@@ -34,7 +36,7 @@ if (OPENAL)
34 36
35 find_path(OPENAL_INCLUDE_DIR 37 find_path(OPENAL_INCLUDE_DIR
36 NAMES al.h 38 NAMES al.h
37 PATHS ${LIBS_PREBUILT_DIR}/include/AL /usr/include/AL 39 PATHS ${LIBS_PREBUILT_DIR}/include/AL
38 ) 40 )
39 41
40 if (NOT OPENAL_INCLUDE_DIR) 42 if (NOT OPENAL_INCLUDE_DIR)
@@ -49,15 +51,11 @@ if (OPENAL)
49 51
50 if (WINDOWS) 52 if (WINDOWS)
51 find_library(ALUT_LIB 53 find_library(ALUT_LIB
52 NAMES alut freealut 54 NAMES alut freealut
53 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release 55 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release
54 ) 56 )
55
56 else (WINDOWS) 57 else (WINDOWS)
57 find_library(ALUT_LIB 58 set(ALUT_LIB alut)
58 NAMES alut freealut
59 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
60 )
61 endif (WINDOWS) 59 endif (WINDOWS)
62 60
63 if (NOT ALUT_LIB) 61 if (NOT ALUT_LIB)
@@ -72,7 +70,7 @@ if (OPENAL)
72 70
73 find_path(ALUT_INCLUDE_DIR 71 find_path(ALUT_INCLUDE_DIR
74 NAMES alut.h 72 NAMES alut.h
75 PATHS ${LIBS_PREBUILT_DIR}/include/AL /usr/include/AL 73 PATHS ${LIBS_PREBUILT_DIR}/include/AL
76 ) 74 )
77 75
78 if (NOT ALUT_INCLUDE_DIR) 76 if (NOT ALUT_INCLUDE_DIR)