CMAKE_APPLE_SILICON_PROCESSOR in toolchain file
as mentioned in the documentation we tried to add
set(CMAKE_APPLE_SILICON_PROCESSOR "x86_64") in our toolchain file for Android NDK. But this won't work.
... It is meant to be set by a toolchain file specified by the CMAKE_TOOLCHAIN_FILE variable, or as a cache entry provided by the user, e.g. via -DCMAKE_APPLE_SILICON_PROCESSOR=....
If we provide the variable with -D or as an environment it works without a problem. Maybe because the CMAKE_TOOLCHAIN_FILE is loaded after the check for CMAKE_APPLE_SILICON_PROCESSOR?
Tried: CMake 3.20.0