diff options
author | Brad King <brad.king@kitware.com> | 2016-10-07 13:34:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-07 13:53:51 (GMT) |
commit | 8cdac469d19f486b167006e4d4fcbf2a18c85866 (patch) | |
tree | 0bbaa4b4c8d8a95ba5118802828fe4d7a0b71b50 /Tests/RunCMake | |
parent | 0c3a04777cc5fa8bc43b57b789e72630781ef56a (diff) | |
download | CMake-8cdac469d19f486b167006e4d4fcbf2a18c85866.zip CMake-8cdac469d19f486b167006e4d4fcbf2a18c85866.tar.gz CMake-8cdac469d19f486b167006e4d4fcbf2a18c85866.tar.bz2 |
Android: Fix support for cxxabi.h with libc++
Additional include directories are needed for this on some STL types.
Closes: #16350
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r-- | Tests/RunCMake/Android/android.cxx | 3 | ||||
-rw-r--r-- | Tests/RunCMake/Android/common.cmake | 2 |
2 files changed, 5 insertions, 0 deletions
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}") |