Skip to content

Commit

Permalink
Description: fix installation of shared library for Android
Browse files Browse the repository at this point in the history
Author: Boris Pek <tehnick-8@yandex.ru>
Last-Update: 2018-01-10
  • Loading branch information
slouken committed Feb 7, 2018
1 parent cd53220 commit c329381
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Expand Up @@ -1796,10 +1796,12 @@ if(NOT (WINDOWS OR CYGWIN))
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
Expand Down

0 comments on commit c329381

Please sign in to comment.