From 280779c615402e335e40d96b9cf71ee8758fd63f Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Wed, 18 Sep 2024 07:44:29 -0400 Subject: [PATCH] cmake: Correctly set the soversion based on SemVer properties 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: 832926f5afebd9a5a81343425e733708332f730f ("Update library version handling for cmake") Signed-off-by: Neal Gompa --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 345ce6a3..6cb5a6c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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