From ffd05647d065f5f5ca94605a5285d32ad22d20c3 Mon Sep 17 00:00:00 2001 From: nieder Date: Mon, 25 Sep 2023 05:13:23 -0500 Subject: [PATCH] Add MACHO_*_VERSION when building the dylib on macOS Fixes #405 --- lib/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 1afefae0..ab3cee21 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -172,7 +172,8 @@ if(HAVE_CRYPTO) endif() if(SHARED_LIB_VERSIONNING) - set_target_properties(zip PROPERTIES VERSION 5.5 SOVERSION 5) + # MACHO_*_VERSION can be removed when SOVERSION gets increased. Cf #405 + set_target_properties(zip PROPERTIES VERSION 5.5 SOVERSION 5 MACHO_CURRENT_VERSION 6.5 MACHO_COMPATIBILITY_VERSION 6) endif() target_link_libraries(zip PRIVATE ZLIB::ZLIB)