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.cmake30
1 files changed, 11 insertions, 19 deletions
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake
index 5e71f66..11dcdc7 100644
--- a/linden/indra/cmake/OPENAL.cmake
+++ b/linden/indra/cmake/OPENAL.cmake
@@ -10,16 +10,12 @@ 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
18 else (WINDOWS) 17 else (WINDOWS)
19 find_library(OPENAL_LIB 18 set(OPENAL_LIB openal)
20 NAMES openal openal32 OpenAL OpenAL32 wrap_oal
21 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
22 )
23 endif (WINDOWS) 19 endif (WINDOWS)
24 20
25 if (NOT OPENAL_LIB) 21 if (NOT OPENAL_LIB)
@@ -34,7 +30,7 @@ if (OPENAL)
34 30
35 find_path(OPENAL_INCLUDE_DIR 31 find_path(OPENAL_INCLUDE_DIR
36 NAMES al.h 32 NAMES al.h
37 PATHS ${LIBS_PREBUILT_DIR}/include/AL /usr/include/AL 33 PATHS ${LIBS_PREBUILT_DIR}/include/AL
38 ) 34 )
39 35
40 if (NOT OPENAL_INCLUDE_DIR) 36 if (NOT OPENAL_INCLUDE_DIR)
@@ -49,15 +45,11 @@ if (OPENAL)
49 45
50 if (WINDOWS) 46 if (WINDOWS)
51 find_library(ALUT_LIB 47 find_library(ALUT_LIB
52 NAMES alut freealut 48 NAMES alut freealut
53 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release 49 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release
54 ) 50 )
55
56 else (WINDOWS) 51 else (WINDOWS)
57 find_library(ALUT_LIB 52 set(ALUT_LIB alut)
58 NAMES alut freealut
59 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
60 )
61 endif (WINDOWS) 53 endif (WINDOWS)
62 54
63 if (NOT ALUT_LIB) 55 if (NOT ALUT_LIB)
@@ -72,7 +64,7 @@ if (OPENAL)
72 64
73 find_path(ALUT_INCLUDE_DIR 65 find_path(ALUT_INCLUDE_DIR
74 NAMES alut.h 66 NAMES alut.h
75 PATHS ${LIBS_PREBUILT_DIR}/include/AL /usr/include/AL 67 PATHS ${LIBS_PREBUILT_DIR}/include/AL
76 ) 68 )
77 69
78 if (NOT ALUT_INCLUDE_DIR) 70 if (NOT ALUT_INCLUDE_DIR)