Feature request: Enable use of custom compiler toolchains for Android devices
Hello!
Currently the cmake modules dealing with Android specifics do not provide an easy way to use a compiler toolchain not supplied by Google's NDK.
The checks are very narrowly tied to expected directory structures and files found in the NDK; often there is no way to just set a value manually and override automatic detection.
As an example if CMAKE_SYSTEM_ROOT
is set it is checked to match a certain pattern. The only ways to get around such checks would be to set some values that trigger early-exit clauses in the Android specific modules (like setting CMAKE_SYSTEM_VERSION to 1) which leave all variables normally set by the modules up to be set by the user - which would be fine, but I am concerned that a project's CMakeLists may check CMAKE_SYSTEM_VERSION
and base bahviour on the value found there.
tl;dr I want an early-exit variable for Android specific modules shipped with cmake or means to override automatic checks/feature detection with finer granularity.