Skip to content

Commit

Permalink
Set correct soversion for the library target
Browse files Browse the repository at this point in the history
  • Loading branch information
matwey committed Nov 6, 2022
1 parent c88cb0b commit 1e9d56b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,21 @@ list(APPEND LIBRARIES

add_library(openvizsla ${SOURCES})
target_link_libraries(openvizsla ${LIBRARIES})
set_target_properties(openvizsla PROPERTIES
VERSION 0.0.0
SOVERSION 0)
#
# Here are a set of rules to help you update your library version information:
#
# If the library source code has changed at all since the last update,
# then increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
# If any interfaces have been added, removed, or changed since the last update,
# increment current, and set revision to 0.
# If any interfaces have been added since the last public release,
# then increment age.
# If any interfaces have been removed or changed since the last public release,
# then set age to 0.
#
# set_target_properties(openvizsla PROPERTIES VERSION c.r.a SOVERSION c)
#
set_target_properties(openvizsla PROPERTIES VERSION 1.0.0 SOVERSION 1)
target_compile_definitions(openvizsla PUBLIC "_XOPEN_SOURCE;_XOPEN_SOURCE_EXTENDED")

generate_export_header(openvizsla)
Expand Down

0 comments on commit 1e9d56b

Please sign in to comment.