[Commits] SDL: Description: fix installation of shared library for Android

libsdl.org revision control commits-owner at libsdl.org
Wed Feb 7 14:03:02 PST 2018


details:   https://hg.libsdl.org/SDL/rev/8553b0c52d2b
changeset: 11849:8553b0c52d2b
user:      Sam Lantinga <slouken at libsdl.org>
date:      Wed Feb 07 14:03:24 2018 -0800
description:
Description: fix installation of shared library for Android
Author: Boris Pek <tehnick-8 at yandex.ru>
Last-Update: 2018-01-10

diffstat:

 CMakeLists.txt |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r 2f157c1ca383 -r 8553b0c52d2b CMakeLists.txt
--- a/CMakeLists.txt	Wed Feb 07 13:13:55 2018 -0500
+++ b/CMakeLists.txt	Wed Feb 07 14:03:24 2018 -0800
@@ -1796,10 +1796,12 @@
     else()
         set(SOEXT "so")
     endif()
-    install(CODE "
-      execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
-      \"libSDL2-2.0.${SOEXT}\" \"libSDL2.${SOEXT}\")")
-    install(FILES ${SDL2_BINARY_DIR}/libSDL2.${SOEXT} DESTINATION "lib${LIB_SUFFIX}")
+    if(NOT ANDROID)
+        install(CODE "
+          execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
+          \"libSDL2-2.0.${SOEXT}\" \"libSDL2.${SOEXT}\")")
+        install(FILES ${SDL2_BINARY_DIR}/libSDL2.${SOEXT} DESTINATION "lib${LIB_SUFFIX}")
+    endif()
   endif()
   if(FREEBSD)
     # FreeBSD uses ${PREFIX}/libdata/pkgconfig


More information about the commits mailing list