Skip to content

Commit f2affce

Browse files
committed
cmake, meson: Fix Darwin versions
1 parent f8c8e1a commit f2affce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ endif()
411411
set(LIBXML_MINOR_COMPAT 14)
412412
math(EXPR LIBXML_SOVERSION "${LIBXML_MAJOR_VERSION} + ${LIBXML_MINOR_COMPAT}")
413413
math(EXPR LIBXML_AGE "${LIBXML_MINOR_VERSION} - ${LIBXML_MINOR_COMPAT}")
414-
math(EXPR LIBXML_MACHO_COMPAT "${LIBXML_SOVERSION} + 1")
414+
math(EXPR LIBXML_MACHO_COMPAT "${LIBXML_MAJOR_VERSION} + ${LIBXML_MINOR_VERSION} + 1")
415415
set_target_properties(
416416
LibXml2
417417
PROPERTIES

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ endforeach
480480
v_min_compat = 14
481481
so_version = v_maj + v_min_compat
482482
age = v_min - v_min_compat
483-
darwin_compat = so_version + 1
483+
darwin_compat = v_maj + v_min + 1
484484
xml_lib = library(
485485
'xml2',
486486
files(xml_src),

0 commit comments

Comments
 (0)