support custom toolchain with existing android NDK
It would be extremely convenient to be able to use a custom complete toolchain along with an existing NDK installation to test android builds with a newer toolchain but the existing sysroot. This is similar to the way that you can use a custom toolchain with CMAKE_SYSROOT
however, since the android NDK is not laid out like a traditional sysroot, it would be easier to use the existing CMAKE_ANDROID_NDK
support with an overridden CMAKE_C_COMPILER
, CMAKE_CXX_COMPILER
.