Description: fix installation of shared library for Android

Author: Boris Pek <tehnick-8@yandex.ru>
Last-Update: 2018-01-10
This commit is contained in:
Sam Lantinga 2018-02-07 14:03:24 -08:00
parent cd53220749
commit c329381f4c
1 changed files with 6 additions and 4 deletions

View File

@ -1796,11 +1796,13 @@ if(NOT (WINDOWS OR CYGWIN))
else()
set(SOEXT "so")
endif()
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
install(FILES ${SDL2_BINARY_DIR}/sdl2.pc DESTINATION "libdata/pkgconfig")