mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-17 20:50:43 -06:00
Android: Fix linking android_support for pre-21 system STL
This typo was introduced in commit 4dca078829 (Android: Link c++abi and
android_support when necessary, 2020-10-29, v3.20.0-rc1~541^2).
Fixes: #23004
This commit is contained in:
@@ -56,7 +56,7 @@ if(CMAKE_ANDROID_STL_TYPE)
|
|||||||
if(_ANDROID_STL_EXCEPTIONS OR _ANDROID_STL_RTTI)
|
if(_ANDROID_STL_EXCEPTIONS OR _ANDROID_STL_RTTI)
|
||||||
string(APPEND CMAKE_${lang}_STANDARD_LIBRARIES " -lc++abi")
|
string(APPEND CMAKE_${lang}_STANDARD_LIBRARIES " -lc++abi")
|
||||||
if(CMAKE_SYSTEM_VERSION LESS 21)
|
if(CMAKE_SYSTEM_VERSION LESS 21)
|
||||||
list(APPEND CMAKE_${lang}_STANDARD_LIBRARIES "-landroid_support")
|
string(APPEND CMAKE_${lang}_STANDARD_LIBRARIES " -landroid_support")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|||||||
Reference in New Issue
Block a user