Skip to content

Commit d494c8f

Browse files
committed
Base SOVERSION off of the OTIO major and minor version
Signed-off-by: Darby Johnston <[email protected]>
1 parent 1fabbe9 commit d494c8f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

CMakeLists.txt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ set(OTIO_VERSION_MINOR "18")
1111
set(OTIO_VERSION_PATCH "0")
1212
set(OTIO_VERSION ${OTIO_VERSION_MAJOR}.${OTIO_VERSION_MINOR}.${OTIO_VERSION_PATCH})
1313

14-
# Set the SOVERSION. This version should be incremented anytime the ABI
15-
# changes. OTIO is currently using the minor version number for breaking
16-
# changes, e.g. v0.15, v0.16.0, v0.17.0, so the SOVERSION should be incremented
17-
# to match. If the next OTIO version is 0.19.0 and has ABI changes, the
18-
# SOVERSION should be incremented to 0.19. When OTIO reaches 1.x.x the
19-
# SOVERSION can be changed to match the major version which is a more
20-
# common convention.
21-
set(OTIO_SOVERSION 0.18)
22-
2314
set(OTIO_AUTHOR "Contributors to the OpenTimelineIO project")
2415
set(OTIO_AUTHOR_EMAIL "[email protected]")
2516
set(OTIO_LICENSE "Modified Apache 2.0 License")
@@ -127,6 +118,13 @@ else()
127118
endif()
128119
endif()
129120

121+
# Set the SOVERSION. This version should be incremented anytime the ABI
122+
# changes. OTIO is currently using the minor version number for breaking
123+
# changes, e.g. v0.15, v0.16.0, v0.17.0, so SOVERSION is set as a combination
124+
# of OTIO_VERSION_MAJOR and OTIO_VERSION_MINOR. When OTIO reaches version 1.x.x
125+
# then SOVERSION could be changed to track just OTIO_VERSION_MAJOR.
126+
set(OTIO_SOVERSION ${OTIO_VERSION_MAJOR}.${OTIO_VERSION_MINOR})
127+
130128
set(OTIO_RESOLVED_CXX_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}")
131129

132130
if(OTIO_CXX_INSTALL)

0 commit comments

Comments
 (0)