summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-23 17:08:53 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-23 17:10:51 (GMT)
commit7b637ebdc97655462d08d8ff70bee5d4f32e4681 (patch)
tree037638b87540fc203610652d2d96c700b0fa306c /Help/variable
parentc2f561e58c799cc82df7db70710ae2f79b8b6b64 (diff)
downloadCMake-7b637ebdc97655462d08d8ff70bee5d4f32e4681.zip
CMake-7b637ebdc97655462d08d8ff70bee5d4f32e4681.tar.gz
CMake-7b637ebdc97655462d08d8ff70bee5d4f32e4681.tar.bz2
Android: Add `ANDROID` variable to indicate the target
Allow projects to use `if(ANDROID)` to condition their Android-specific code paths.
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/ANDROID.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/variable/ANDROID.rst b/Help/variable/ANDROID.rst
new file mode 100644
index 0000000..fede4ca
--- /dev/null
+++ b/Help/variable/ANDROID.rst
@@ -0,0 +1,5 @@
+ANDROID
+-------
+
+Set to ``1`` when the target system (:variable:`CMAKE_SYSTEM_NAME`) is
+``Android``.