mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user