generated from MartinHelmut/cpp-base-template
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e709c66
commit df7e543
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 () |