Merge topic 'android-r22' into release-3.20

005e2cdfb0 Android: Do not use gold for ndk >= r22
ed7a87f270 Tests: Update RunCMake.Android for NDK r22
4950d35733 Help: Document CMAKE_ANDROID_NDK_VERSION variable
746906242d Android: Detect NDK version number

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5862
This commit is contained in:
Brad King
2021-03-03 16:11:52 +00:00
committed by Kitware Robot
7 changed files with 69 additions and 3 deletions
+4
View File
@@ -359,6 +359,10 @@ CMake uses the following steps to select one of the environments:
* Else, an error diagnostic will be issued that neither the NDK or
Standalone Toolchain can be found.
.. versionadded:: 3.20
If an Android NDK is selected, its version number is reported
in the :variable:`CMAKE_ANDROID_NDK_VERSION` variable.
.. _`Cross Compiling for Android with the NDK`:
Cross Compiling for Android with the NDK
+1
View File
@@ -278,6 +278,7 @@ Variables that Describe the System
/variable/ANDROID
/variable/APPLE
/variable/BORLAND
/variable/CMAKE_ANDROID_NDK_VERSION
/variable/CMAKE_CL_64
/variable/CMAKE_COMPILER_2005
/variable/CMAKE_HOST_APPLE
+3
View File
@@ -73,6 +73,9 @@ Platforms
- The default :variable:`CMAKE_BUILD_TYPE` for Android is
now ``RelWithDebInfo``.
- The :variable:`CMAKE_ANDROID_NDK_VERSION` variable was added to
report the version of the NDK.
File-Based API
--------------
@@ -0,0 +1,8 @@
CMAKE_ANDROID_NDK_VERSION
-------------------------
.. versionadded:: 3.20
When :ref:`Cross Compiling for Android with the NDK` and using an
Android NDK version 11 or higher, this variable is provided by
CMake to report the NDK version number.