Okay, thanks. But this doesn't answer my question. So can we introduce new variable CMAKE_C_PREPROCESSOR with the value |"${CMAKE_CXX_ANDROID_TOOLCHAIN_PREFIX}cpp${CMAKE_CXX_ANDROID_TOOLCHAIN_SUFFIX}"? Similar to CMAKE_C_COMPILER, CMAKE_CXX_COMPILER, CMAKE_AR. What about ANDROID_TOOLCHAIN_MACHINE_NAME? Your proposal is to parse the last component of |||CMAKE_CXX_ANDROID_TOOLCHAIN_PREFIX? Does this one look good:
|| ||get_filename_component(ANDROID_TOOLCHAIN_MACHINE_NAME "${CMAKE_CXX_ANDROID_TOOLCHAIN_PREFIX}" NAME)|| ||string(REGEX REPLACE "-$" "" ||||||ANDROID_TOOLCHAIN_MACHINE_NAME|| "${||||||ANDROID_TOOLCHAIN_MACHINE_NAME||}") |||||| ||? Ruslo ||On 11-Nov-16 00:29, Brad King wrote: > On 11/10/2016 10:05 AM, Ruslan Baratov via cmake-developers wrote: >> variables describing Android tools: > See: > > * > https://cmake.org/cmake/help/v3.7/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_PREFIX.html > * > https://cmake.org/cmake/help/v3.7/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_SUFFIX.html > * > https://gitlab.kitware.com/cmake/cmake/blob/v3.7.0-rc3/Tests/RunCMake/Android/common.cmake#L9-13 > > -Brad >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers