SDL_ttf: cmake: fix macho {compatibility,current} version (d36c3)

From d36c3f1f29c732b294b5749a04d2224e670e6d09 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 1 May 2024 22:07:24 +0200
Subject: [PATCH] cmake: fix macho {compatibility,current} version

---
 CMakeLists.txt | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4afd21cf..6850f05c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,19 +118,15 @@ set_target_properties(SDL2_ttf PROPERTIES
 if(NOT ANDROID)
     set_target_properties(SDL2_ttf PROPERTIES
         DEBUG_POSTFIX "${SDL2TTF_DEBUG_POSTFIX}"
+        SOVERSION "${LT_MAJOR}"
+        VERSION "${LT_VERSION}"
     )
     if(APPLE)
         cmake_minimum_required(VERSION 3.17)
         set_target_properties(SDL2_ttf PROPERTIES
-            SOVERSION "${LT_MAJOR}"
             MACHO_COMPATIBILITY_VERSION "${DYLIB_COMPATIBILITY_VERSION}"
             MACHO_CURRENT_VERSION "${MACHO_CURRENT_VERSION}"
         )
-    else()
-        set_target_properties(SDL2_ttf PROPERTIES
-            SOVERSION "${LT_MAJOR}"
-            VERSION "${LT_VERSION}"
-        )
     endif()
 endif()
 if(SDL2TTF_BUILD_SHARED_LIBS AND (APPLE OR (UNIX AND NOT ANDROID)))