CMake/Tests/RunCMake/Android
Brad King 4bafa3922e Android: Always add standard include directories last
The logic added in commit v3.6.0-rc1~30^2 (Add a variable to specify
language-wide system include directories, 2016-05-24) to use
`CMAKE_<LANG>_STANDARD_INCLUDE_DIRECTORIES` incorrectly filters them by
`CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES`.  Rather than recognizing
this, commit v3.8.0-rc1~60^2 (Android: Pass sysroot include directory
explicitly, 2017-01-20) worked around the problem by incorrectly
removing `/usr/include` from `CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES`
so it worked in `CMAKE_<LANG>_STANDARD_INCLUDE_DIRECTORIES`.

By not filtering out `/usr/include` from user-specified include
directories, we allow the code

    include_directories(${CMAKE_SYSROOT}/usr/include)

to place the include directory too early on the command line.

Fix support for standard include directories to not be filtered by
implicit include directories, and do not remove `/usr/include` from the
list of implicit include directories for Android builds.  Add a test
case to verify that an explicit `/usr/include` is ignored in favor
of the standard directory at the end.

Fixes: #17059
2017-07-13 10:03:58 -04:00
..
sysinc Android: Always add standard include directories last 2017-07-13 10:03:58 -04:00
android_sysinc.c Android: Always add standard include directories last 2017-07-13 10:03:58 -04:00
android_sysinc.cxx Android: Always add standard include directories last 2017-07-13 10:03:58 -04:00
android.c
android.cxx Android: Fix support for cxxabi.h with libc++ 2016-10-07 09:53:51 -04:00
android.h
BadSYSROOT-result.txt
BadSYSROOT-stderr.txt
BadSYSROOT.cmake
CMakeLists.txt
common.cmake Android: Always add standard include directories last 2017-07-13 10:03:58 -04:00
ndk-arm64-v8a-stdout.txt
ndk-arm64-v8a.cmake
ndk-armeabi-arm-stdout.txt
ndk-armeabi-arm.cmake
ndk-armeabi-thumb-stdout.txt
ndk-armeabi-thumb.cmake
ndk-armeabi-v7a-neon-stdout.txt
ndk-armeabi-v7a-neon.cmake
ndk-armeabi-v7a-stdout.txt
ndk-armeabi-v7a.cmake
ndk-badabi-result.txt
ndk-badabi-stderr.txt
ndk-badabi.cmake
ndk-badarm-result.txt
ndk-badarm-stderr.txt
ndk-badarm.cmake
ndk-badneon-result.txt
ndk-badneon-stderr.txt
ndk-badneon.cmake
ndk-badstl-result.txt
ndk-badstl-stderr.txt
ndk-badstl.cmake
ndk-badver-result.txt
ndk-badver-stderr.txt
ndk-badver.cmake
ndk-badvernum-result.txt
ndk-badvernum-stderr.txt
ndk-badvernum.cmake
ndk-mips64-stdout.txt
ndk-mips64.cmake
ndk-mips-stdout.txt
ndk-mips.cmake
ndk-sysroot-armeabi-stdout.txt
ndk-sysroot-armeabi.cmake
ndk-x86_64-stdout.txt
ndk-x86_64.cmake
ndk-x86-stdout.txt
ndk-x86.cmake
RunCMakeTest.cmake Android: Fix support for armeabi with c++_static 2016-10-21 08:42:25 -04:00
standalone-stdout.txt
standalone-sysroot-stdout.txt
standalone-sysroot.cmake
standalone.cmake