Skip to content

Commit

Permalink
cmake: Correctly set the soversion based on SemVer properties
Browse files Browse the repository at this point in the history
As this project follows Semantic Versioning, the shared object
version should match these semantics.

The two options that make sense here are to have the soversion
set to the version major (so only breaking changes are tracked)
or to set to version major and minor (so breaking and API additions
are tracked).

Since the Windows version of the library already uses version major
and version minor, let's just do this universally.

Fixes: 832926f ("Update library version handling for cmake")

Signed-off-by: Neal Gompa <[email protected]>
  • Loading branch information
Conan-Kudo committed Sep 18, 2024
1 parent 4f43536 commit 280779c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ set_target_properties(
${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
set_target_properties(
libtesseract PROPERTIES SOVERSION
${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
${VERSION_MAJOR}.${VERSION_MINOR})

set_target_properties(
libtesseract
Expand Down

0 comments on commit 280779c

Please sign in to comment.