Skip to content

Commit 7a91b57

Browse files
add SOVERSION to the shared library output (#375)
* add SOVERSION to the shared library output * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3155627 commit 7a91b57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

units/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ if(UNITS_BUILD_SHARED_LIBRARY)
5757
)
5858
target_link_libraries(units PRIVATE compile_flags_target)
5959

60+
set_target_properties(
61+
units PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}
62+
)
63+
6064
if(UNITS_NAMESPACE)
6165
target_compile_definitions(units PUBLIC -DUNITS_NAMESPACE=${UNITS_NAMESPACE})
6266
endif()

0 commit comments

Comments
 (0)