diff options
author | Brad King <brad.king@kitware.com> | 2020-07-16 15:46:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-20 14:03:15 (GMT) |
commit | 26673bf48011a48fe0ad01e97409a32c1f50143d (patch) | |
tree | 38c4a14ec2adaa5ae451c1ce38afacbe0b1d7966 /Modules/CompilerId/Xcode-3.pbxproj.in | |
parent | ce624cfbd4fcbf5c486850ac331fa1e1dba28f8b (diff) | |
download | CMake-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 'Modules/CompilerId/Xcode-3.pbxproj.in')
-rw-r--r-- | Modules/CompilerId/Xcode-3.pbxproj.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CompilerId/Xcode-3.pbxproj.in b/Modules/CompilerId/Xcode-3.pbxproj.in index 672044e..6fe17e5 100644 --- a/Modules/CompilerId/Xcode-3.pbxproj.in +++ b/Modules/CompilerId/Xcode-3.pbxproj.in @@ -84,6 +84,7 @@ CODE_SIGNING_REQUIRED = NO; CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)"; SYMROOT = .; + @id_archs@ @id_toolset@ @id_lang_version@ @id_clang_cxx_library@ |