Skip to content

Android: Update generated system include directory order

Brad King requested to merge brad.king/cmake:android-include-api into master

The NDK build system passes -isystem $sysroot/usr/include explicitly at the end of the compiler command-line so that it comes before the toolchain's builtin include directories. Also, for c++_static and c++_shared STL types, it passes the $ndk/sources/android/support/include directory between the two libc++ include directories. Update our include directory ordering to match this behavior. This fixes some subtle preprocessing differences.

Closes: #16536 (closed)

Merge request reports