Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Help / variable / CMAKE_ANDROID_API.rst
1 CMAKE_ANDROID_API
2 -----------------
3
4 .. versionadded:: 3.1
5
6 When :ref:`Cross Compiling for Android with NVIDIA Nsight Tegra Visual Studio
7 Edition`, this variable may be set to specify the default value for the
8 :prop_tgt:`ANDROID_API` target property.  See that target property for
9 additional information.
10
11 When :ref:`Cross Compiling for Android`, the :variable:`CMAKE_SYSTEM_VERSION`
12 variable represents the Android API version number targeted.  For historical
13 reasons, if a toolchain file sets ``CMAKE_ANDROID_API``, but not
14 ``CMAKE_SYSTEM_VERSION``, the latter will be initialized using the former.