New in version 3.7.
When Cross Compiling for Android with the NDK, this variable may be set to specify the version of the toolchain to be used as the compiler.
On NDK r19 or above, this variable must be unset or set to clang
.
On NDK r18 or below, this variable must be set to one of these forms:
<major>.<minor>
: GCC of specified versionclang<major>.<minor>
: Clang of specified versionclang
: Clang of most recent available versionA toolchain of the requested version will be selected automatically to match the ABI named in the CMAKE_ANDROID_ARCH_ABI
variable.
If not specified, the default will be a value that selects the latest available GCC toolchain.
© 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.19/variable/CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION.html