diff options
author | Volker Krause <vkrause@kde.org> | 2018-02-17 10:40:38 +0100 |
---|---|---|
committer | Volker Krause <vkrause@kde.org> | 2018-02-17 12:26:27 +0100 |
commit | 132b95190a31ef0b3256d8c43087c91bd785627f (patch) | |
tree | b510f95e81d00276d40c825b112d2a0edef9c5df /toolchain | |
parent | 16844390dab769404d9762a702c0cbc5d2d018f2 (diff) | |
download | extra-cmake-modules-132b95190a31ef0b3256d8c43087c91bd785627f.tar.gz extra-cmake-modules-132b95190a31ef0b3256d8c43087c91bd785627f.tar.bz2 |
Set ANDROID in the Android toolchain file
Summary:
This allows easy platforms checks in CMake files, and is the same the
CMake files shipped by the Android SDK use.
Reviewers: #build_system, apol
Reviewed By: apol
Subscribers: #frameworks
Tags: #frameworks, #build_system
Differential Revision: https://phabricator.kde.org/D10600
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/Android.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/toolchain/Android.cmake b/toolchain/Android.cmake index 7e0dcaaf..010ea896 100644 --- a/toolchain/Android.cmake +++ b/toolchain/Android.cmake @@ -163,6 +163,7 @@ endif() #actual code SET(CMAKE_SYSTEM_NAME Android) SET(CMAKE_SYSTEM_VERSION 1) +SET(ANDROID TRUE) if (NOT DEFINED ECM_ADDITIONAL_FIND_ROOT_PATH) SET(ECM_ADDITIONAL_FIND_ROOT_PATH ${CMAKE_PREFIX_PATH}) |