Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOName needs to be less volatile #402

Merged
merged 1 commit into from
Apr 9, 2021
Merged

Conversation

Shachar
Copy link
Contributor

@Shachar Shachar commented Apr 4, 2021

The SOName of the created library changes with every tiny change to the code. This makes the library impossible to package, as well as a host of other problems. This patch makes the SO name take only the major component of the version.

  • TDD

There is no new code or functionality.

  • Documentation

This change applies only to the ABI. There is no change to the API.

Cross-Platform Testing

  • Travis-CI (Linux, OSX) + AppVeyor-CI (Windows)\
  • Optional: Local/VM testing: Windows
  • Optional: Local/VM testing: OSX
  • Optional: Local/VM testing: Linux

Testing Advice

mkdir build; cd build; cmake -DADD_G3LOG_UNIT_TEST=ON ..

Run Test Alternatives:

  • Cross-Platform: ctest
  • or ctest -V for verbose output
  • Linux: make test

@Shachar Shachar mentioned this pull request Apr 4, 2021
CMakeLists.txt Outdated
@@ -89,9 +89,11 @@ IF ( NOT VERSION )
message( STATUS "version base: ${VERSION-BASE}" )
message( STATUS "version remainder: ${VERSION-REMAINDER}" )
SET(BUILD_NUMBER ${VERSION-BASE})
SET(VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}-${VERSION-REMAINDER})
SET(SOFT_VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}-${VERSION-REMAINDER})
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean soversion? AFAIK SOFT_VERSION is not a reserved keyword in cmake
https://cmake.org/cmake/help/latest/prop_tgt/SOVERSION.html#prop_tgt:SOVERSION

@Shachar
Copy link
Contributor Author

Shachar commented Apr 7, 2021

Revised based on discussion on #403.

@KjellKod KjellKod merged commit c769b76 into KjellKod:master Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants