[cmake-developers] Android variables
Brad King
brad.king at kitware.com
Fri Nov 11 08:09:56 EST 2016
On 11/10/2016 10:46 PM, Ruslan Baratov wrote:
> the value "${CMAKE_CXX_ANDROID_TOOLCHAIN_PREFIX}cpp${CMAKE_CXX_ANDROID_TOOLCHAIN_SUFFIX}"
This expression is the documented way to get the paths to the Android tools.
I see no reason to add a pre-evaluated copy for every tool.
> ANDROID_TOOLCHAIN_MACHINE_NAME?
In your original message it looked like you needed this only to construct
the path above.
> get_filename_component(ANDROID_TOOLCHAIN_MACHINE_NAME "${CMAKE_CXX_ANDROID_TOOLCHAIN_PREFIX}" NAME)
> string(REGEX REPLACE "-$" "" ANDROID_TOOLCHAIN_MACHINE_NAME "${ANDROID_TOOLCHAIN_MACHINE_NAME}")
AFAICT the only meaning this value has is exactly what that code expresses.
What is your use case for getting this value and why is it needed separately?
-Brad
More information about the cmake-developers
mailing list