Commit 407d4e470afaa5f5b8f6a7e37ca323bcaf99af54

Ozkan Sezer 2022-01-12T20:32:00

cmake: simplify after the previous os/2 commit.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2b1fc57..efaa9e3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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}