mirror of https://github.com/encounter/SDL.git
cmake: output libSDL2-2.0.0.dylib like autotools, not libSDL2-2.0.dylib.
libSDL2-2.0.dylib is now installed as a symlink to libSDL2-2.0.0.dylib : $ ls -l *.dylib -rwxr-xr-x. 1 ozkan ozkan 1755488 Sep 23 23:53 libSDL2-2.0.0.dylib lrwxrwxrwx. 1 ozkan ozkan 19 Sep 23 23:53 libSDL2-2.0.dylib -> libSDL2-2.0.0.dylib lrwxrwxrwx. 1 ozkan ozkan 17 Sep 23 23:53 libSDL2.dylib -> libSDL2-2.0.dylib Reference issue: https://github.com/libsdl-org/sdl12-compat/issues/217
This commit is contained in:
parent
4a06cc0f75
commit
f6c9b06562
|
@ -3078,8 +3078,10 @@ if(SDL_SHARED)
|
||||||
add_library(SDL2::SDL2 ALIAS SDL2)
|
add_library(SDL2::SDL2 ALIAS SDL2)
|
||||||
set_target_properties(SDL2 PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
set_target_properties(SDL2 PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
# FIXME: Remove SOVERSION in SDL3
|
||||||
set_target_properties(SDL2 PROPERTIES
|
set_target_properties(SDL2 PROPERTIES
|
||||||
MACOSX_RPATH 1
|
MACOSX_RPATH 1
|
||||||
|
SOVERSION 0
|
||||||
OUTPUT_NAME "SDL2-${LT_RELEASE}")
|
OUTPUT_NAME "SDL2-${LT_RELEASE}")
|
||||||
elseif(UNIX AND NOT ANDROID)
|
elseif(UNIX AND NOT ANDROID)
|
||||||
set_target_properties(SDL2 PROPERTIES
|
set_target_properties(SDL2 PROPERTIES
|
||||||
|
|
Loading…
Reference in New Issue