summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Android-Common.cmake
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2021-12-11 05:23:17 (GMT)
committerBrad King <brad.king@kitware.com>2021-12-13 15:43:14 (GMT)
commit38b00f88014a0866e2aa650550977b4bc676b355 (patch)
treeed47e008d63d0462c3353fa161defe017f76dce8 /Modules/Platform/Android-Common.cmake
parent6752fb2889ebbe23a9c82246a9b1089d7c788ca4 (diff)
downloadCMake-38b00f88014a0866e2aa650550977b4bc676b355.zip
CMake-38b00f88014a0866e2aa650550977b4bc676b355.tar.gz
CMake-38b00f88014a0866e2aa650550977b4bc676b355.tar.bz2
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
Diffstat (limited to 'Modules/Platform/Android-Common.cmake')
-rw-r--r--Modules/Platform/Android-Common.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Android-Common.cmake b/Modules/Platform/Android-Common.cmake
index 39da933..f1deaca 100644
--- a/Modules/Platform/Android-Common.cmake
+++ b/Modules/Platform/Android-Common.cmake
@@ -56,7 +56,7 @@ if(CMAKE_ANDROID_STL_TYPE)
if(_ANDROID_STL_EXCEPTIONS OR _ANDROID_STL_RTTI)
string(APPEND CMAKE_${lang}_STANDARD_LIBRARIES " -lc++abi")
if(CMAKE_SYSTEM_VERSION LESS 21)
- list(APPEND CMAKE_${lang}_STANDARD_LIBRARIES "-landroid_support")
+ string(APPEND CMAKE_${lang}_STANDARD_LIBRARIES " -landroid_support")
endif()
endif()
endmacro()