mirror of https://github.com/encounter/SDL.git
CMake: Don't make a libSDL2.so symlink on Mac OS X (do .dylib instead).
This commit is contained in:
parent
fa8c83c1c1
commit
1240f8e0a6
|
@ -1507,12 +1507,17 @@ endforeach()
|
||||||
list(APPEND INCLUDE_FILES ${BIN_INCLUDE_FILES})
|
list(APPEND INCLUDE_FILES ${BIN_INCLUDE_FILES})
|
||||||
install(FILES ${INCLUDE_FILES} DESTINATION include/SDL2)
|
install(FILES ${INCLUDE_FILES} DESTINATION include/SDL2)
|
||||||
|
|
||||||
if(NOT WINDOWS OR CYGWIN)
|
if(NOT (WINDOWS OR CYGWIN))
|
||||||
if(SDL_SHARED)
|
if(SDL_SHARED)
|
||||||
|
if (APPLE)
|
||||||
|
set(SOEXT "dylib")
|
||||||
|
else()
|
||||||
|
set(SOEXT "so")
|
||||||
|
endif()
|
||||||
install(CODE "
|
install(CODE "
|
||||||
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
|
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
|
||||||
\"libSDL2-2.0.so\" \"libSDL2.so\")")
|
\"libSDL2-2.0.${SOEXT}\" \"libSDL2.${SOEXT}\")")
|
||||||
install(FILES ${SDL2_BINARY_DIR}/libSDL2.so DESTINATION "lib${LIB_SUFFIX}")
|
install(FILES ${SDL2_BINARY_DIR}/libSDL2.${SOEXT} DESTINATION "lib${LIB_SUFFIX}")
|
||||||
endif()
|
endif()
|
||||||
if(FREEBSD)
|
if(FREEBSD)
|
||||||
# FreeBSD uses ${PREFIX}/libdata/pkgconfig
|
# FreeBSD uses ${PREFIX}/libdata/pkgconfig
|
||||||
|
|
Loading…
Reference in New Issue