Skip to content

Commit fbd676b

Browse files
committed
Set compatibility/current-version=13.0.0
1 parent 58abeae commit fbd676b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

recipe/compat.patch

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/sharedlib/CMakeLists.txt b/sharedlib/CMakeLists.txt
2+
index 8d65e58..d9daeb7 100755
3+
--- a/sharedlib/CMakeLists.txt
4+
+++ b/sharedlib/CMakeLists.txt
5+
@@ -40,6 +40,7 @@ add_library(jpeg SHARED ${JPEG_SRCS} ${DEFFILE} $<TARGET_OBJECTS:simd>
6+
7+
set_target_properties(jpeg PROPERTIES SOVERSION ${SO_MAJOR_VERSION}
8+
VERSION ${SO_MAJOR_VERSION}.${SO_AGE}.${SO_MINOR_VERSION})
9+
+set_target_properties(jpeg PROPERTIES MACHO_COMPATIBILITY_VERSION 13.0.0 MACHO_CURRENT_VERSION 13.0.0)
10+
if(APPLE AND (NOT CMAKE_OSX_DEPLOYMENT_TARGET OR
11+
CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER 10.4))
12+
if(NOT CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG)

recipe/meta.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ source:
88
url: https://github.com/libjpeg-turbo/libjpeg-turbo/archive/{{ version }}.tar.gz
99
sha256: a78b05c0d8427a90eb5b4eb08af25309770c8379592bb0b8a863373128e6143f
1010

11+
patches:
12+
# set macos compatibility-version and current-version
13+
- compat.patch
1114
build:
1215
number: 1
1316

0 commit comments

Comments
 (0)