Skip to content

Commit 5d31c32

Browse files
committed
cmake, macOS: Provide all components of {compatibility,current}_version
1 parent 4af241b commit 5d31c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ elseif(APPLE)
5151
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
5252
math(EXPR ${PROJECT_NAME}_compatibility_version "${${PROJECT_NAME}_LIB_VERSION_CURRENT} + 1")
5353
set_target_properties(secp256k1 PROPERTIES
54-
MACHO_COMPATIBILITY_VERSION ${${PROJECT_NAME}_compatibility_version}
55-
MACHO_CURRENT_VERSION ${${PROJECT_NAME}_compatibility_version}.${${PROJECT_NAME}_LIB_VERSION_REVISION}
54+
MACHO_COMPATIBILITY_VERSION ${${PROJECT_NAME}_compatibility_version}.0.0
55+
MACHO_CURRENT_VERSION ${${PROJECT_NAME}_compatibility_version}.${${PROJECT_NAME}_LIB_VERSION_REVISION}.0
5656
)
5757
unset(${PROJECT_NAME}_compatibility_version)
5858
elseif(BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)