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.cmake24
1 files changed, 20 insertions, 4 deletions
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake
index a2bae5d..5e71f66 100644
--- a/linden/indra/cmake/OPENAL.cmake
+++ b/linden/indra/cmake/OPENAL.cmake
@@ -9,11 +9,19 @@ if (OPENAL)
9 9
10 # OPENAL_LIB 10 # OPENAL_LIB
11 11
12 if (WINDOWS)
12 find_library(OPENAL_LIB 13 find_library(OPENAL_LIB
13 NAMES openal OpenAL OpenAL32 wrap_oal 14 NAMES openal openal32 OpenAL OpenAL32 wrap_oal
14 PATHS ${ARCH_PREBUILT_DIRS_RELEASE} 15 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release
15 ) 16 )
16 17
18 else (WINDOWS)
19 find_library(OPENAL_LIB
20 NAMES openal openal32 OpenAL OpenAL32 wrap_oal
21 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
22 )
23 endif (WINDOWS)
24
17 if (NOT OPENAL_LIB) 25 if (NOT OPENAL_LIB)
18 message(FATAL_ERROR "OpenAL not found!") 26 message(FATAL_ERROR "OpenAL not found!")
19 else (NOT OPENAL_LIB) 27 else (NOT OPENAL_LIB)
@@ -26,7 +34,7 @@ if (OPENAL)
26 34
27 find_path(OPENAL_INCLUDE_DIR 35 find_path(OPENAL_INCLUDE_DIR
28 NAMES al.h 36 NAMES al.h
29 PATHS ${LIBS_PREBUILT_DIR}/include /usr/include/AL 37 PATHS ${LIBS_PREBUILT_DIR}/include/AL /usr/include/AL
30 ) 38 )
31 39
32 if (NOT OPENAL_INCLUDE_DIR) 40 if (NOT OPENAL_INCLUDE_DIR)
@@ -39,10 +47,18 @@ if (OPENAL)
39 47
40 # ALUT_LIB 48 # ALUT_LIB
41 49
50 if (WINDOWS)
51 find_library(ALUT_LIB
52 NAMES alut freealut
53 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release
54 )
55
56 else (WINDOWS)
42 find_library(ALUT_LIB 57 find_library(ALUT_LIB
43 NAMES alut freealut 58 NAMES alut freealut
44 PATHS ${ARCH_PREBUILT_DIRS_RELEASE} 59 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
45 ) 60 )
61 endif (WINDOWS)
46 62
47 if (NOT ALUT_LIB) 63 if (NOT ALUT_LIB)
48 message(FATAL_ERROR "ALUT not found!") 64 message(FATAL_ERROR "ALUT not found!")
@@ -56,7 +72,7 @@ if (OPENAL)
56 72
57 find_path(ALUT_INCLUDE_DIR 73 find_path(ALUT_INCLUDE_DIR
58 NAMES alut.h 74 NAMES alut.h
59 PATHS ${LIBS_PREBUILT_DIR}/include /usr/include/AL 75 PATHS ${LIBS_PREBUILT_DIR}/include/AL /usr/include/AL
60 ) 76 )
61 77
62 if (NOT ALUT_INCLUDE_DIR) 78 if (NOT ALUT_INCLUDE_DIR)