summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Android/Determine-Compiler-NDK.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-11 20:22:43 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-14 19:29:18 (GMT)
commitd95e6dff3cb869d45b27836dc0967ab27872bcdc (patch)
treed6fd427adae7bfb9d83f4759fd38b50774f1aa46 /Modules/Platform/Android/Determine-Compiler-NDK.cmake
parent3d42a72bd5827ea875bbba830ecff90b3aaf54d6 (diff)
downloadCMake-d95e6dff3cb869d45b27836dc0967ab27872bcdc.zip
CMake-d95e6dff3cb869d45b27836dc0967ab27872bcdc.tar.gz
CMake-d95e6dff3cb869d45b27836dc0967ab27872bcdc.tar.bz2
Android: Add CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG variable
The NDK provides prebuilt toolchain files in directories named for the host architecture. The NDK build system calls this `HOST_TAG`. Expose the value publicly for use by clients that need to pass it to external tools. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
Diffstat (limited to 'Modules/Platform/Android/Determine-Compiler-NDK.cmake')
-rw-r--r--Modules/Platform/Android/Determine-Compiler-NDK.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Android/Determine-Compiler-NDK.cmake b/Modules/Platform/Android/Determine-Compiler-NDK.cmake
index a33935b..855ae86 100644
--- a/Modules/Platform/Android/Determine-Compiler-NDK.cmake
+++ b/Modules/Platform/Android/Determine-Compiler-NDK.cmake
@@ -210,6 +210,7 @@ endif()
# Help CMakeFindBinUtils locate things.
set(_CMAKE_TOOLCHAIN_PREFIX "${_ANDROID_TOOL_PREFIX}")
+set(_ANDROID_TOOL_NDK_TOOLCHAIN_HOST_TAG "${_ANDROID_HOST_DIR}")
set(_ANDROID_TOOL_NDK_TOOLCHAIN_VERSION "${_ANDROID_TOOL_VERS_NDK}")
set(_ANDROID_TOOL_C_TOOLCHAIN_VERSION "${_ANDROID_TOOL_VERS}")