Skip to content

Commit

Permalink
CMake: Set minimum macOS version to 11 for Apple Silicon
Browse files Browse the repository at this point in the history
Signed-off-by: Avery King <[email protected]>
  • Loading branch information
Avery King committed Aug 27, 2024
1 parent 99d3b75 commit 3e8829c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,12 @@ endif()

# Definitions that must happen before the project() command
if( APPLE )
set( MIN_MACOS_VERSION 10.15 )
set( TARGET_MACOS_VERSION 10.15 )
if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64")
set(MIN_MACOS_VERSION 11)
else()
set( MIN_MACOS_VERSION 10.15 )
endif()
set( TARGET_MACOS_VERSION 11 )
# Generate schema files
set( CMAKE_XCODE_GENERATE_SCHEME ON )

Expand Down

0 comments on commit 3e8829c

Please sign in to comment.