CMAKE_ANDROID_STL_TYPEΒΆ
Added in version 3.4.
When Cross Compiling for Android with NVIDIA Nsight Tegra Visual Studio Edition, this variable may be set to specify the default value for the
ANDROID_STL_TYPE target property. See that target property
for additional information.
When Cross Compiling for Android with the NDK, this variable may be set to specify the STL variant to be used. The value may be one of:
noneNo C++ Support
systemMinimal C++ without STL
gabi++_staticGAbi++ Static
gabi++_sharedGAbi++ Shared
gnustl_staticGNU libstdc++ Static
gnustl_sharedGNU libstdc++ Shared
c++_staticLLVM libc++ Static
c++_sharedLLVM libc++ Shared
stlport_staticSTLport Static
stlport_sharedSTLport Shared
The default value is gnustl_static on NDK versions that provide it
and otherwise c++_static. Note that this default differs from
the native NDK build system because CMake may be used to build projects for
Android that are not natively implemented for it and use the C++ standard
library.