Skip to content

Commit 69f5e33

Browse files
committed
Better Apple build settings
1 parent ccb34db commit 69f5e33

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cmake/AppleBuild.cmake

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# Define apple architecture for Release builds, use default. For an explicit
2-
# universal executable use `x86_64;arm64`.
31
# This file needs to be included before calling `project`.
42
if (APPLE AND "${CMAKE_GENERATOR}" STREQUAL "Xcode")
5-
set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)" CACHE INTERNAL "")
3+
# Define apple architecture for Release builds, use default. For an explicit
4+
# universal executable use `x86_64;arm64`.
5+
set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)" CACHE INTERNAL "OS X architecture")
6+
7+
# Support older macOS versions.
8+
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15 CACHE STRING "Minimum OS X deployment version")
69
endif ()

0 commit comments

Comments
 (0)