mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 01:19:31 -05:00
Android: Add ANDROID variable to indicate the target
Allow projects to use `if(ANDROID)` to condition their Android-specific code paths.
This commit is contained in:
@@ -173,6 +173,7 @@ Variables that Describe the System
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
/variable/ANDROID
|
||||
/variable/APPLE
|
||||
/variable/BORLAND
|
||||
/variable/CMAKE_CL_64
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
ANDROID
|
||||
-------
|
||||
|
||||
Set to ``1`` when the target system (:variable:`CMAKE_SYSTEM_NAME`) is
|
||||
``Android``.
|
||||
Reference in New Issue
Block a user