Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Larhzu committed Dec 27, 2024
1 parent 2e3ea03 commit 05cc662
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
os: [macos-latest]
build_system: [cmake]
build_system: [autotools, cmake]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
Expand Down
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1464,12 +1464,16 @@ elseif(BUILD_SHARED_LIBS AND SYMBOL_VERSIONING STREQUAL "generic")
)
endif()

math(EXPR liblzma_MACHO_COMPATIBILITY_VERSION
"${xz_VERSION_MAJOR} + ${xz_VERSION_MINOR} + 1")
set(liblzma_MACHO_CURRENT_VERSION
"${liblzma_MACHO_COMPATIBILITY_VERSION}.${xz_VERSION_PATCH}")

set_target_properties(liblzma PROPERTIES
# At least for now the package versioning matches the rules used for
# shared library versioning (excluding development releases) so it is
# fine to use the package version here.
SOVERSION "${xz_VERSION_MAJOR}"
VERSION "${xz_VERSION}"
MACHO_COMPATIBILITY_VERSION "${liblzma_MACHO_COMPATIBILITY_VERSION}"
MACHO_CURRENT_VERSION "${liblzma_MACHO_CURRENT_VERSION}"

# The name liblzma a mess because in many places "lib" is just a prefix
# and not part of the actual name. (Don't name a new library this way!)
Expand Down
2 changes: 2 additions & 0 deletions build-aux/ci_build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ then
echo
echo DEBUG
echo
ls -ld src/liblzma/.libs/liblzma*dylib*
echo
otool -L src/liblzma/.libs/liblzma.5.dylib
echo
echo DEBUG
Expand Down

0 comments on commit 05cc662

Please sign in to comment.