Skip to content

Commit e24868e

Browse files
committed
cmake: fix macho {compatibility,current} version
1 parent faa269c commit e24868e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

CMakeLists.txt

+3-7
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,14 @@ set_target_properties(SDL2_image PROPERTIES
257257
if(NOT ANDROID)
258258
set_target_properties(SDL2_image PROPERTIES
259259
DEBUG_POSTFIX "${SDL2IMAGE_DEBUG_POSTFIX}"
260+
SOVERSION "${LT_MAJOR}"
261+
VERSION "${LT_VERSION}"
260262
)
261263
if(APPLE)
262264
cmake_minimum_required(VERSION 3.17)
263265
set_target_properties(SDL2_image PROPERTIES
264-
SOVERSION "${LT_MAJOR}"
265266
MACHO_COMPATIBILITY_VERSION "${DYLIB_COMPATIBILITY_VERSION}"
266-
MACHO_CURRENT_VERSION "${MACHO_CURRENT_VERSION}"
267-
)
268-
else()
269-
set_target_properties(SDL2_image PROPERTIES
270-
SOVERSION "${LT_MAJOR}"
271-
VERSION "${LT_VERSION}"
267+
MACHO_CURRENT_VERSION "${DYLIB_CURRENT_VERSION}"
272268
)
273269
endif()
274270
endif()

0 commit comments

Comments
 (0)