summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-16 15:46:53 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-20 14:03:15 (GMT)
commit26673bf48011a48fe0ad01e97409a32c1f50143d (patch)
tree38c4a14ec2adaa5ae451c1ce38afacbe0b1d7966 /Help
parentce624cfbd4fcbf5c486850ac331fa1e1dba28f8b (diff)
downloadCMake-26673bf48011a48fe0ad01e97409a32c1f50143d.zip
CMake-26673bf48011a48fe0ad01e97409a32c1f50143d.tar.gz
CMake-26673bf48011a48fe0ad01e97409a32c1f50143d.tar.bz2
Xcode: Explicitly specify default native architecture on macOS
When `CMAKE_OSX_ARCHITECTURES` is not specified, we add the Xcode setting `ONLY_ACTIVE_ARCH = YES` with the intention of targeting the native architecture of the host. However, the default `ARCHS` value chosen by "Xcode 12 Universal Apps" includes multiple architectures. Add an explicit `ARCHS` setting with value `$(NATIVE_ARCH_ACTUAL)` to tell Xcode to use the host's native architecture only. Fixes: #20893
Diffstat (limited to 'Help')
-rw-r--r--Help/release/3.18.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Help/release/3.18.rst b/Help/release/3.18.rst
index 386b61b..427840e 100644
--- a/Help/release/3.18.rst
+++ b/Help/release/3.18.rst
@@ -318,3 +318,17 @@ Other Changes
* The :manual:`cmake-file-api(7)` "codemodel" version 2 "target" object gained
a new ``precompileHeaders`` field in the ``compileGroups`` objects.
+
+Updates
+=======
+
+Changes made since CMake 3.18.0 include the following.
+
+3.18.1
+------
+
+* The :generator:`Xcode` generator, when :variable:`CMAKE_OSX_ARCHITECTURES`
+ is not defined, now selects ``$(NATIVE_ARCH_ACTUAL)`` as the default
+ architecture (the Xcode ``ARCHS`` setting). This is needed for Xcode 12
+ to select the host's architecture, which older versions of Xcode did
+ by default.