diff options
author | Brad King <brad.king@kitware.com> | 2021-04-01 13:59:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-01 14:04:05 (GMT) |
commit | 3f04f6973398a41dd0fcb7531210fcaffa1dfefb (patch) | |
tree | 5b417e130071d8f67952e03a70f0784cf646085f /Help/variable | |
parent | 22612dd53a46c7f9b4c3f4b7dbe5c78f9afd9581 (diff) | |
download | CMake-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.rst | 5 |
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. |