You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
libfb303_thrift_cpp.so.1.0.0 doesn't have a SONAME #7
So this is intentional - since fb303's API is not stable, leaving the SONAME unset means CMake uses the same value for version and soname. Packagers building shared libraries should make sure to always bump the version.
I'm open to better ideas, or maybe we should just document this better.
For shared libraries VERSION and SOVERSION can be used to specify the build version and API version respectively. When building or installing appropriate symlinks are created if the platform supports symlinks and the linker supports so-names. If only one of both is specified the missing is assumed to have the same version number.
Oh, wait, you mean SONAME, not SOVERSION. Where would you suggest it should be set? libfb303_thrift_cpp is eventually generated by this (add_fbthrift_library invokes add_fbthrift_cpp_library)
Activity
yfeldblum commentedon Nov 23, 2020
Would you submit a PR?
@michel-slm
michel-slm commentedon Nov 23, 2020
So this is intentional - since fb303's API is not stable, leaving the SONAME unset means CMake uses the same value for version and soname. Packagers building shared libraries should make sure to always bump the version.
I'm open to better ideas, or maybe we should just document this better.
yurivict commentedon Nov 23, 2020
You don't set SONAME at all. You should add the corresponding argument to the link command.
michel-slm commentedon Nov 23, 2020
see https://cmake.org/cmake/help/latest/prop_tgt/VERSION.html
Oh, wait, you mean SONAME, not SOVERSION. Where would you suggest it should be set? libfb303_thrift_cpp is eventually generated by this (
add_fbthrift_libraryinvokesadd_fbthrift_cpp_library)https://github.com/facebook/fb303/blob/9cf1b57ccc77dce820a3407d7e554b8532921e62/build/fbcode_builder/CMake/FBThriftCppLibrary.cmake#L129-L139
yfeldblum commentedon Jun 6, 2024
Closing due to age.