CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION.rst 758 B

1234567891011121314151617181920
  1. CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION
  2. -----------------------------------
  3. When :ref:`Cross Compiling for Android with the NDK`, this variable
  4. may be set to specify the version of the toolchain to be used
  5. as the compiler.
  6. On NDK r19 or above, this variable must be unset or set to ``clang``.
  7. On NDK r18 or below, this variable must be set to one of these forms:
  8. * ``<major>.<minor>``: GCC of specified version
  9. * ``clang<major>.<minor>``: Clang of specified version
  10. * ``clang``: Clang of most recent available version
  11. A toolchain of the requested version will be selected automatically to
  12. match the ABI named in the :variable:`CMAKE_ANDROID_ARCH_ABI` variable.
  13. If not specified, the default will be a value that selects the latest
  14. available GCC toolchain.