Skip to content

Commit

Permalink
cmake/toolchain.clang-default.cmake Adjust for MacOS >= 10.13 (Min De…
Browse files Browse the repository at this point in the history
…ployment Version)
  • Loading branch information
sgothel committed Dec 3, 2023
1 parent 1aaf4f0 commit fd5269b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/toolchain.clang-default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd5269b

Please sign in to comment.