diff options
author | Brad King <brad.king@kitware.com> | 2016-10-10 14:23:24 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-10-10 14:23:24 (GMT) |
commit | 19d4f942fe5fe2d84e9fc1f6abe9c237f6dceeec (patch) | |
tree | aca1b7286162ec9798318906cd9b695acfef9076 | |
parent | ce002921344cceb42801d088ab82fcf8f21964da (diff) | |
parent | 8cdac469d19f486b167006e4d4fcbf2a18c85866 (diff) | |
download | CMake-19d4f942fe5fe2d84e9fc1f6abe9c237f6dceeec.zip CMake-19d4f942fe5fe2d84e9fc1f6abe9c237f6dceeec.tar.gz CMake-19d4f942fe5fe2d84e9fc1f6abe9c237f6dceeec.tar.bz2 |
Merge topic 'android-cxxabi'
8cdac469 Android: Fix support for cxxabi.h with libc++
-rw-r--r-- | Modules/Platform/Android/ndk-stl-c++.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/Android/android.cxx | 3 | ||||
-rw-r--r-- | Tests/RunCMake/Android/common.cmake | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Platform/Android/ndk-stl-c++.cmake b/Modules/Platform/Android/ndk-stl-c++.cmake index cb9fd68..b27015d 100644 --- a/Modules/Platform/Android/ndk-stl-c++.cmake +++ b/Modules/Platform/Android/ndk-stl-c++.cmake @@ -6,9 +6,11 @@ macro(__android_stl_cxx lang filename) 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) + __android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++abi/libcxxabi/include" 1) else() # r13 and above __android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++/include" 1) + __android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++abi/include" 1) endif() # Add a secondary include directory if it exists. diff --git a/Tests/RunCMake/Android/android.cxx b/Tests/RunCMake/Android/android.cxx index e6a6cda..2dee8f9 100644 --- a/Tests/RunCMake/Android/android.cxx +++ b/Tests/RunCMake/Android/android.cxx @@ -6,6 +6,9 @@ #ifndef STL_SYSTEM #include <exception> #include <typeinfo> +#ifndef STL_STLPORT +#include <cxxabi.h> +#endif #ifndef STL_GABI #include <iostream> #include <string> diff --git a/Tests/RunCMake/Android/common.cmake b/Tests/RunCMake/Android/common.cmake index 6ea0909..d803c98 100644 --- a/Tests/RunCMake/Android/common.cmake +++ b/Tests/RunCMake/Android/common.cmake @@ -43,6 +43,8 @@ elseif(CMAKE_ANDROID_STL_TYPE STREQUAL "system") add_definitions(-DSTL_SYSTEM) elseif(CMAKE_ANDROID_STL_TYPE MATCHES [[^gabi\+\+]]) add_definitions(-DSTL_GABI) +elseif(CMAKE_ANDROID_STL_TYPE MATCHES [[^stlport]]) + add_definitions(-DSTL_STLPORT) endif() string(REPLACE "-" "_" abi "${CMAKE_ANDROID_ARCH_ABI}") |