From 5d31c3208efe779b535f145bf672a311c8e3cc40 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Mon, 1 Jul 2024 15:07:19 +0100 Subject: [PATCH] cmake, macOS: Provide all components of {compatibility,current}_version --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4cbaeb914d..e2d1819cfd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -51,8 +51,8 @@ elseif(APPLE) if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17) math(EXPR ${PROJECT_NAME}_compatibility_version "${${PROJECT_NAME}_LIB_VERSION_CURRENT} + 1") set_target_properties(secp256k1 PROPERTIES - MACHO_COMPATIBILITY_VERSION ${${PROJECT_NAME}_compatibility_version} - MACHO_CURRENT_VERSION ${${PROJECT_NAME}_compatibility_version}.${${PROJECT_NAME}_LIB_VERSION_REVISION} + MACHO_COMPATIBILITY_VERSION ${${PROJECT_NAME}_compatibility_version}.0.0 + MACHO_CURRENT_VERSION ${${PROJECT_NAME}_compatibility_version}.${${PROJECT_NAME}_LIB_VERSION_REVISION}.0 ) unset(${PROJECT_NAME}_compatibility_version) elseif(BUILD_SHARED_LIBS)