summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Android-Clang.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-02 14:16:11 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-12 14:40:51 (GMT)
commit47866770cee381851ccc8070f64459909a838288 (patch)
tree2c5f4033501c288644c6a7055d48e6b7d81d347f /Modules/Platform/Android-Clang.cmake
parent735f168bf08a4fdf1d9e245035d2dbcadbed652f (diff)
downloadCMake-47866770cee381851ccc8070f64459909a838288.zip
CMake-47866770cee381851ccc8070f64459909a838288.tar.gz
CMake-47866770cee381851ccc8070f64459909a838288.tar.bz2
Android: Add placeholders for platform-specific compiler settings
Add infrastructure modules to be loaded for Clang and GNU compilers when targeting Android platforms.
Diffstat (limited to 'Modules/Platform/Android-Clang.cmake')
-rw-r--r--Modules/Platform/Android-Clang.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/Modules/Platform/Android-Clang.cmake b/Modules/Platform/Android-Clang.cmake
new file mode 100644
index 0000000..b354b4c
--- /dev/null
+++ b/Modules/Platform/Android-Clang.cmake
@@ -0,0 +1,24 @@
+#=============================================================================
+# Copyright 2015-2016 Kitware, Inc.
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+# (To distribute this file outside of CMake, substitute the full
+# License text for the above reference.)
+
+# This module is shared by multiple languages; use include blocker.
+if(__ANDROID_COMPILER_CLANG)
+ return()
+endif()
+set(__ANDROID_COMPILER_CLANG 1)
+
+include(Platform/Android-Common)
+
+macro(__android_compiler_clang lang)
+ __android_compiler_common(${lang})
+endmacro()