File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -118,18 +118,14 @@ set_target_properties(SDL2_net PROPERTIES
118
118
if (NOT ANDROID )
119
119
set_target_properties (SDL2_net PROPERTIES
120
120
DEBUG_POSTFIX "${SDL2NET_DEBUG_POSTFIX} "
121
+ SOVERSION "${LT_MAJOR} "
122
+ VERSION "${LT_VERSION} "
121
123
)
122
124
if (APPLE )
123
- # the SOVERSION property corresponds to the compatibility version and VERSION corresponds to the current version
124
- # https://cmake.org/cmake/help/latest/prop_tgt/SOVERSION.html#mach-o-versions
125
+ cmake_minimum_required (VERSION 3.17 )
125
126
set_target_properties (SDL2_net PROPERTIES
126
- SOVERSION "${DYLIB_COMPATIBILITY_VERSION} "
127
- VERSION "${DYLIB_CURRENT_VERSION} "
128
- )
129
- else ()
130
- set_target_properties (SDL2_net PROPERTIES
131
- SOVERSION "${LT_MAJOR} "
132
- VERSION "${LT_VERSION} "
127
+ MACHO_COMPATIBILITY_VERSION "${DYLIB_COMPATIBILITY_VERSION} "
128
+ MACHO_CURRENT_VERSION "${DYLIB_CURRENT_VERSION} "
133
129
)
134
130
endif ()
135
131
endif ()
You can’t perform that action at this time.
0 commit comments