Skip to content

Commit

Permalink
Merge pull request #7 from smr99/fix-add-soversion
Browse files Browse the repository at this point in the history
Set VERSION and SOVERSION for the shared libraries.
  • Loading branch information
aumuell authored Oct 1, 2024
2 parents 8036732 + 71fef26 commit 014e2bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ project("Open Inventor"
HOMEPAGE_URL "http://oss.sgi.com/projects/inventor/"
LANGUAGES CXX C)

set(INVENTOR_SOVERSION 1)

include(GNUInstallDirs)
include(FeatureSummary)

Expand Down
5 changes: 2 additions & 3 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -848,9 +848,8 @@ if (CMAKE_DL_LIBS)
endif()

set_target_properties(Inventor PROPERTIES
#VERSION ${CMAKE_PROJECT_VERSION}
VERSION 0.0.0
SOVERSION 0
VERSION ${CMAKE_PROJECT_VERSION}
SOVERSION ${INVENTOR_SOVERSION}
)

install(TARGETS Inventor)
Expand Down
5 changes: 2 additions & 3 deletions libSoXt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ target_sources(InventorXt
)

set_target_properties(InventorXt PROPERTIES
#VERSION ${CMAKE_PROJECT_VERSION}
VERSION 0.0.0
SOVERSION 0
VERSION ${CMAKE_PROJECT_VERSION}
SOVERSION ${INVENTOR_SOVERSION}
)

target_include_directories(InventorXt PRIVATE
Expand Down

0 comments on commit 014e2bf

Please sign in to comment.