summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-04-07 02:34:32 +0200
committerNicky <nicky.dasmijn@gmail.com>2022-04-07 02:34:32 +0200
commit603ad5a4f2450f67d2d253f199b3f6a216b30248 (patch)
treee0d160efc64d98b53160adaf258cd6483b3af620 /indra
parent353ae84c90a2b9a1fefff3f94787746168da1a6c (diff)
OpenAL is not avaiable for OSX, error out in case someone selects ot.
Diffstat (limited to 'indra')
-rw-r--r--indra/cmake/OPENAL.cmake17
1 files changed, 10 insertions, 7 deletions
diff --git a/indra/cmake/OPENAL.cmake b/indra/cmake/OPENAL.cmake
index ab2d258a12..a5058b4bc3 100644
--- a/indra/cmake/OPENAL.cmake
+++ b/indra/cmake/OPENAL.cmake
@@ -12,6 +12,7 @@ if (OPENAL)
if( TARGET openal::openal )
return()
endif()
+
create_target( openal::openal )
set_target_include_dirs( openal::openal "${LIBS_PREBUILT_DIR}/include/AL")
@@ -26,13 +27,15 @@ if (OPENAL)
if(WINDOWS)
set_target_libraries( openal::openal
- OpenAL32
- alut
- )
- else()
+ OpenAL32
+ alut
+ )
+ elseif(LINUX)
set_target_libraries( openal::openal
- openal
- alut
- )
+ openal
+ alut
+ )
+ else()
+ message(FATAL_ERROR "OpenAL is not available for this platform")
endif()
endif (OPENAL)