aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/toolchain.clang-default.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/toolchain.clang-default.cmake b/cmake/toolchain.clang-default.cmake
index 26af4ecb..78c52055 100644
--- a/cmake/toolchain.clang-default.cmake
+++ b/cmake/toolchain.clang-default.cmake
@@ -7,8 +7,12 @@ endif()
if(APPLE)
# was 10.5, but `-stdlib=libc++` requires >= 10.7 (deployment target)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.7")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7")
+ # OpenAL-Soft git version 2023-11-25 requires >= 10.13
+ # Note:
+ # - kAudioObjectPropertyElementMain since macOS 12
+ # - kAudioObjectPropertyElementMaster gone in macOS 12
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.13 -DkAudioObjectPropertyElementMain=kAudioObjectPropertyElementMaster")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.13 -DkAudioObjectPropertyElementMain=kAudioObjectPropertyElementMaster")
endif()
# inject additional architectures for fat-binary (macosx)