diff options
Diffstat (limited to 'linden/indra/cmake')
-rw-r--r-- | linden/indra/cmake/OPENAL.cmake | 15 |
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!") |