Fix wrong OpenAL path for arm64 macOS (#1252)

This commit is contained in:
Pedro Beirao 2023-11-12 00:08:39 +00:00 committed by GitHub
parent f566602caa
commit f3f1b425ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,11 @@ This module defines the following variables:
#]=======================================================================]
if(APPLE)
set(ENV{PKG_CONFIG_PATH} "/usr/local/opt/openal-soft/lib/pkgconfig")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64")
set(ENV{PKG_CONFIG_PATH} "/opt/homebrew/opt/openal-soft/lib/pkgconfig")
else()
set(ENV{PKG_CONFIG_PATH} "/usr/local/opt/openal-soft/lib/pkgconfig")
endif()
endif()
find_package(PkgConfig QUIET)