summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-06 17:28:14 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-06 17:28:14 (GMT)
commitffff5c17a5b87984b9bcb7e6f20445b0efdcd124 (patch)
treed5ad03bd30a18cc0d13ad79350ef5059caab2726 /Modules
parentdcf9729eb9a3647fc3c9cd5f2e04a5419420fb61 (diff)
parent0c3a04777cc5fa8bc43b57b789e72630781ef56a (diff)
downloadCMake-ffff5c17a5b87984b9bcb7e6f20445b0efdcd124.zip
CMake-ffff5c17a5b87984b9bcb7e6f20445b0efdcd124.tar.gz
CMake-ffff5c17a5b87984b9bcb7e6f20445b0efdcd124.tar.bz2
Merge branch 'android-ndk-r13' into release
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Android/ndk-stl-c++.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/Platform/Android/ndk-stl-c++.cmake b/Modules/Platform/Android/ndk-stl-c++.cmake
index 14748a1..cb9fd68 100644
--- a/Modules/Platform/Android/ndk-stl-c++.cmake
+++ b/Modules/Platform/Android/ndk-stl-c++.cmake
@@ -3,7 +3,13 @@ set(_ANDROID_STL_RTTI 1)
set(_ANDROID_STL_EXCEPTIONS 1)
macro(__android_stl_cxx lang filename)
# Add the include directory.
- __android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++/libcxx/include" 1)
+ if(EXISTS "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++/libcxx/include/cstddef")
+ # r12 and below
+ __android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++/libcxx/include" 1)
+ else()
+ # r13 and above
+ __android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++/include" 1)
+ endif()
# Add a secondary include directory if it exists.
__android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/android/support/include" 0)