mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
The chosen STL libraries are already linked explicitly so we shouldn't let the compiler add its implicit `-lstdc++` (the default) when invoking the linker. Fixes: #17863 NDK-Issue: https://github.com/android-ndk/ndk/issues/105 Inspired-by: Tom Hughes <tomtheengineer@gmail.com>
8 lines
268 B
CMake
8 lines
268 B
CMake
# <ndk>/android-ndk-r11c/sources/cxx-stl/system/Android.mk
|
|
set(_ANDROID_STL_RTTI 0)
|
|
set(_ANDROID_STL_EXCEPTIONS 0)
|
|
set(_ANDROID_STL_NOSTDLIBXX 0)
|
|
macro(__android_stl lang)
|
|
__android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/system/include" 1)
|
|
endmacro()
|