[cmake-developers] Android Support

Brad King brad.king at kitware.com
Tue Sep 27 11:39:05 EDT 2016


On 09/27/2016 11:28 AM, Florent Castelli wrote:
> Is there any plan on having their toolchain in CMake directly at some point?

No.  Their toolchain files are designed to be loaded from the NDK.  They
compute things relative to their own location and are meant to know exactly
what is there.

The whole point of a toolchain file is supposed to be to have information about
the local machine that CMake can't know in general.  They aren't supposed to be
these huge files with tables of information common to the target platform and
full of system introspection logic.  CMake now has those tables so the toolchain
files don't have to.

With CMake 3.7 you shouldn't actually need a toolchain file from the NDK.
In fact for simple cases you don't even need a toolchain file at all.

-Brad



More information about the cmake-developers mailing list