Skip to content

Commit

Permalink
cmake: fix macho {compatibility,current} version
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed May 1, 2024
1 parent b4969dc commit d36c3f1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit d36c3f1

Please sign in to comment.