Skip to content

Commit

Permalink
Merge pull request #997 from dmacks/master
Browse files Browse the repository at this point in the history
cmake: Fix OS X compatibility_version based on libtool legacy
  • Loading branch information
farindk authored Oct 17, 2023
2 parents 28f61b1 + d6e62ea commit f96f2fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libheif/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ set_target_properties(heif
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR})

# compatibility_version defaults to 1.0.0 and is never allowed to be
# decreased for any specific SONAME. Libtool in the libheif-1.15.1
# release had set it to 17.0.0, so force it higher here.
if (APPLE)
set_target_properties(heif
PROPERTIES
LINK_FLAGS "-Wl,-compatibility_version,18.0.0")
endif ()

target_compile_definitions(heif
PUBLIC
LIBHEIF_EXPORTS
Expand Down

0 comments on commit f96f2fa

Please sign in to comment.