Explicitly select c++_static STL, default Android STL is totally broken

This commit is contained in:
baldurk
2018-09-26 11:12:44 +01:00
parent c99cce5d5b
commit e13c292fac
+5
View File
@@ -13,6 +13,11 @@ if(BUILD_ANDROID)
if(NOT ANDROID_PLATFORM)
set(ANDROID_PLATFORM "android-21")
endif()
# default to libc++_static as the other options can cause crashes
if(NOT ANDROID_STL)
set(ANDROID_STL "c++_static")
endif()
# Choose clang if the NDK has both gcc and clang, since gcc sometimes fails
set(CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION "clang")