https://github.com/Kitware/CMake
Raw File
Tip revision: 6fe5df13c274441a1e1a1b10e558ef46db60bf4b authored by Brad King on 01 February 2022, 15:51:25 UTC
CMake 3.21.5
Tip revision: 6fe5df1
CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION.rst
CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION
-----------------------------------

.. versionadded:: 3.7

When :ref:`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 version
* ``clang<major>.<minor>``: Clang of specified version
* ``clang``: Clang of most recent available version

A toolchain of the requested version will be selected automatically to
match the ABI named in the :variable:`CMAKE_ANDROID_ARCH_ABI` variable.

If not specified, the default will be a value that selects the latest
available GCC toolchain.
back to top