Skip to content
Snippets Groups Projects
Commit 603ad5a4 authored by Nicky's avatar Nicky
Browse files

OpenAL is not avaiable for OSX, error out in case someone selects ot.

parent 353ae84c
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment