summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Android.cmake
diff options
context:
space:
mode:
authorTom Yan <tom.ty89@gmail.com>2019-03-05 15:44:42 (GMT)
committerTom Yan <tom.ty89@gmail.com>2019-03-05 15:44:42 (GMT)
commit64e2c14c4a2be32bcac53067c4cf00364139e9fe (patch)
treed6114d9cdd2191c63ef3b258d2489fce42498e57 /Modules/Platform/Android.cmake
parent451d3907fdb0eea70f1107712324300d786433d7 (diff)
downloadCMake-64e2c14c4a2be32bcac53067c4cf00364139e9fe.zip
CMake-64e2c14c4a2be32bcac53067c4cf00364139e9fe.tar.gz
CMake-64e2c14c4a2be32bcac53067c4cf00364139e9fe.tar.bz2
Android: allow user to enable versioned soname
Diffstat (limited to 'Modules/Platform/Android.cmake')
-rw-r--r--Modules/Platform/Android.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/Platform/Android.cmake b/Modules/Platform/Android.cmake
index 3d69733..f08f841 100644
--- a/Modules/Platform/Android.cmake
+++ b/Modules/Platform/Android.cmake
@@ -2,9 +2,11 @@ include(Platform/Linux)
set(ANDROID 1)
-# Android has soname, but binary names must end in ".so" so we cannot append
-# a version number. Also we cannot portably represent symlinks on the host.
-set(CMAKE_PLATFORM_NO_VERSIONED_SONAME 1)
+# Conventionally Android does not use versioned soname
+# But in modern versions it is acceptable
+if(NOT DEFINED CMAKE_PLATFORM_NO_VERSIONED_SONAME)
+ set(CMAKE_PLATFORM_NO_VERSIONED_SONAME 1)
+endif()
# Android reportedly ignores RPATH, and we cannot predict the install
# location anyway.