Description: fix installation of shared library for Android
authorSam Lantinga <slouken@libsdl.org>
Wed, 07 Feb 2018 14:03:24 -0800
changeset 118498553b0c52d2b
parent 11848 2f157c1ca383
child 11850 8d97fd557ba1
Description: fix installation of shared library for Android
Author: Boris Pek <tehnick-8@yandex.ru>
Last-Update: 2018-01-10
CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Wed Feb 07 13:13:55 2018 -0500
     1.2 +++ b/CMakeLists.txt	Wed Feb 07 14:03:24 2018 -0800
     1.3 @@ -1796,10 +1796,12 @@
     1.4      else()
     1.5          set(SOEXT "so")
     1.6      endif()
     1.7 -    install(CODE "
     1.8 -      execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
     1.9 -      \"libSDL2-2.0.${SOEXT}\" \"libSDL2.${SOEXT}\")")
    1.10 -    install(FILES ${SDL2_BINARY_DIR}/libSDL2.${SOEXT} DESTINATION "lib${LIB_SUFFIX}")
    1.11 +    if(NOT ANDROID)
    1.12 +        install(CODE "
    1.13 +          execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
    1.14 +          \"libSDL2-2.0.${SOEXT}\" \"libSDL2.${SOEXT}\")")
    1.15 +        install(FILES ${SDL2_BINARY_DIR}/libSDL2.${SOEXT} DESTINATION "lib${LIB_SUFFIX}")
    1.16 +    endif()
    1.17    endif()
    1.18    if(FREEBSD)
    1.19      # FreeBSD uses ${PREFIX}/libdata/pkgconfig