summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-01 13:59:59 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-01 14:04:05 (GMT)
commit3f04f6973398a41dd0fcb7531210fcaffa1dfefb (patch)
tree5b417e130071d8f67952e03a70f0784cf646085f /Help/variable
parent22612dd53a46c7f9b4c3f4b7dbe5c78f9afd9581 (diff)
downloadCMake-3f04f6973398a41dd0fcb7531210fcaffa1dfefb.zip
CMake-3f04f6973398a41dd0fcb7531210fcaffa1dfefb.tar.gz
CMake-3f04f6973398a41dd0fcb7531210fcaffa1dfefb.tar.bz2
Help: CMAKE_APPLE_SILICON_PROCESSOR cannot be set in a toolchain file
`CMakeDetermineSystem` determines the host system information before loading the toolchain file. Issue: #22012
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/CMAKE_APPLE_SILICON_PROCESSOR.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Help/variable/CMAKE_APPLE_SILICON_PROCESSOR.rst b/Help/variable/CMAKE_APPLE_SILICON_PROCESSOR.rst
index ad297c3..0d5ccd1 100644
--- a/Help/variable/CMAKE_APPLE_SILICON_PROCESSOR.rst
+++ b/Help/variable/CMAKE_APPLE_SILICON_PROCESSOR.rst
@@ -8,8 +8,7 @@ CMake what architecture to use for :variable:`CMAKE_HOST_SYSTEM_PROCESSOR`.
The value must be either ``arm64`` or ``x86_64``.
The value of this variable should never be modified by project code.
-It is meant to be set by a toolchain file specified by the
-:variable:`CMAKE_TOOLCHAIN_FILE` variable, or as a cache entry
-provided by the user, e.g. via ``-DCMAKE_APPLE_SILICON_PROCESSOR=...``.
+It is meant to be set as a cache entry provided by the user,
+e.g. via ``-DCMAKE_APPLE_SILICON_PROCESSOR=...``.
See also the :envvar:`CMAKE_APPLE_SILICON_PROCESSOR` environment variable.