Skip to content

Commit

Permalink
cmake: don't set properties twice
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed May 1, 2024
1 parent 2292801 commit f0db594
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,23 +263,6 @@ elseif (UNIX AND NOT APPLE AND NOT ANDROID)
VERSION "${LT_VERSION}"
)
endif()
if (BUILD_SHARED_LIBS)
if (WIN32 OR OS2)
set_target_properties(SDL2_ttf PROPERTIES
PREFIX ""
)
endif()
if (OS2)
# OS/2 doesn't support a DLL name longer than 8 characters.
set_target_properties(SDL2_ttf PROPERTIES
OUTPUT_NAME "SDL2ttf"
)
elseif (UNIX AND NOT APPLE AND NOT ANDROID)
set_target_properties(SDL2_ttf PROPERTIES
OUTPUT_NAME "SDL2_ttf-${LT_RELEASE}"
)
endif()
endif()

# Restore BUILD_SHARED_LIBS variable
set(BUILD_SHARED_LIBS "${SDL2TTF_BUILD_SHARED_LIBS}")
Expand Down

0 comments on commit f0db594

Please sign in to comment.