Skip to content

Commit

Permalink
Better Apple build settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHelmut committed Apr 8, 2024
1 parent e709c66 commit df7e543
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmake/AppleBuild.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Define apple architecture for Release builds, use default. For an explicit
# universal executable use `x86_64;arm64`.
# This file needs to be included before calling `project`.
if (APPLE AND "${CMAKE_GENERATOR}" STREQUAL "Xcode")
set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)" CACHE INTERNAL "")
# Define apple architecture for Release builds, use default. For an explicit
# universal executable use `x86_64;arm64`.
set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)" CACHE INTERNAL "OS X architecture")

# Support older macOS versions.
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15 CACHE STRING "Minimum OS X deployment version")
endif ()

0 comments on commit df7e543

Please sign in to comment.