cmake/Help/variable/CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION.rst

23 lines
781 B
ReStructuredText
Raw Normal View History

2016-10-30 18:24:19 +01:00
CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION
-----------------------------------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.7
2016-10-30 18:24:19 +01:00
When :ref:`Cross Compiling for Android with the NDK`, this variable
may be set to specify the version of the toolchain to be used
2020-02-01 23:06:01 +01:00
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:
2016-10-30 18:24:19 +01:00
* ``<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.
2016-12-03 23:28:24 +01:00
If not specified, the default will be a value that selects the latest
available GCC toolchain.