Android: CMake adds include path -I/opt/android-ndk/sources/cxx-stl/llvm-libc++/include
I'm using CMake's internal Android support and the Android NDK r19.c using the workaround suggested in #18739 (closed).
Apparently there's a change in CMake 3.14.0 which causes it to add -I/opt/android-ndk/sources/cxx-stl/llvm-libc++/include
to the compile flags. This is causing errors like this one when cstdint
is included:
/opt/android-ndk/sources/cxx-stl/llvm-libc++/include/cstdint:153:8: error: no member named In file included from 'int8_t' in ...
Downgrading to CMake 3.13.4 helps.