diff options
author | Sven Gothel <[email protected]> | 2023-12-03 02:14:32 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-12-03 02:14:32 +0100 |
commit | fd5269bec9a5fe4815974b1786a037e6a247bfd2 (patch) | |
tree | 769c08d11bc6808e5633b59bf2210d6d2364dcc1 | |
parent | 1aaf4f070011490bcece50394b9b32dfa593fd9e (diff) |
cmake/toolchain.clang-default.cmake Adjust for MacOS >= 10.13 (Min Deployment Version)
-rw-r--r-- | cmake/toolchain.clang-default.cmake | 8 |
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) |