cmake: simplify after the previous os/2 commit.

This commit is contained in:
Ozkan Sezer 2022-01-12 20:32:00 +03:00
parent f199f832e9
commit 407d4e470a

View File

@ -2857,17 +2857,13 @@ if(SDL_SHARED)
VERSION ${LT_VERSION}
SOVERSION ${LT_MAJOR}
OUTPUT_NAME "SDL2-${LT_RELEASE}")
elseif(OS2)
set_target_properties(SDL2 PROPERTIES
DEFINE_SYMBOL BUILD_SDL)
set_target_properties(SDL2 PROPERTIES
VERSION ${LT_VERSION}
SOVERSION ${LT_MAJOR}
OUTPUT_NAME "SDL2")
else()
if(WINDOWS OR CYGWIN)
set_target_properties(SDL2 PROPERTIES
DEFINE_SYMBOL DLL_EXPORT)
elseif(OS2)
set_target_properties(SDL2 PROPERTIES
DEFINE_SYMBOL BUILD_SDL)
endif()
set_target_properties(SDL2 PROPERTIES
VERSION ${SDL_VERSION}