diff options
author | Brad King <brad.king@kitware.com> | 2016-08-23 17:08:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-23 17:10:51 (GMT) |
commit | 7b637ebdc97655462d08d8ff70bee5d4f32e4681 (patch) | |
tree | 037638b87540fc203610652d2d96c700b0fa306c /Modules | |
parent | c2f561e58c799cc82df7db70710ae2f79b8b6b64 (diff) | |
download | CMake-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 'Modules')
-rw-r--r-- | Modules/Platform/Android.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Android.cmake b/Modules/Platform/Android.cmake index 1bdad04..3d69733 100644 --- a/Modules/Platform/Android.cmake +++ b/Modules/Platform/Android.cmake @@ -1,5 +1,7 @@ include(Platform/Linux) +set(ANDROID 1) + # Android has soname, but binary names must end in ".so" so we cannot append # a version number. Also we cannot portably represent symlinks on the host. set(CMAKE_PLATFORM_NO_VERSIONED_SONAME 1) |