CMake/macOS: use system OpenAL for the time being.

Revert part of {rB83124856d05ee4da605ab247e6}
This commit is contained in:
Ankit Meel 2020-10-19 21:38:35 +05:30
parent c0a6bc1979
commit 4fb67ae809
1 changed files with 7 additions and 9 deletions

View File

@ -53,6 +53,13 @@ find_package(ZLIB REQUIRED)
find_package(BZip2 REQUIRED)
list(APPEND ZLIB_LIBRARIES ${BZIP2_LIBRARIES})
if(WITH_OPENAL)
find_package(OpenAL)
if(NOT OPENAL_FOUND)
set(WITH_OPENAL OFF)
endif()
endif()
if(NOT DEFINED LIBDIR)
set(LIBDIR ${CMAKE_SOURCE_DIR}/../lib/darwin)
# Prefer lib directory paths
@ -72,15 +79,6 @@ if(EXISTS ${LIBDIR})
without_system_libs_begin()
endif()
if(WITH_OPENAL)
# Hardcoding this is better than CMake searching in `~/Library/Frameworks`
# or `/Library/Frameworks` or Xcode SDK's frameworks.
set(OPENAL_INCLUDE_DIR "${LIBDIR}/openal/include/AL")
set(OPENAL_LIBRARY)
set(OPENAL_FOUND TRUE)
print_found_status("OpenAL" "${OPENAL_INCLUDE_DIR}")
endif()
if(WITH_ALEMBIC)
find_package(Alembic)
endif()