Description
👓 What did you see?
Based on #320 (comment) and #328, I expected the SONAME
version for both C and C++ shared libraries to be 32
for https://github.com/cucumber/gherkin/releases/tag/v32.0.0, using
Line 1 in 275322f
and
Line 1 in 275322f
Indeed, this was the case for the C++ library,
libgherkin.so -> libgherkin.so.32
libgherkin.so.32 -> libgherkin.so.32.0.0
libgherkin.so.32.0.0
but not for the C++ library,
libcucumber_gherkin.so -> libcucumber_gherkin.so.30
libcucumber_gherkin.so.30 -> libcucumber_gherkin.so.30.0.4
libcucumber_gherkin.so.30.0.4
✅ What did you expect to see?
I expected to see the C++ shared library versioned based on cpp/VERSION
, just as the C shared library is now versioned based on c/VERSION
, which would have resulted in:
libcucumber_gherkin.so -> libcucumber_gherkin.so.32
libcucumber_gherkin.so.32 -> libcucumber_gherkin.so.32.0.0
libcucumber_gherkin.so.32.0.0
📦 Which tool/library version are you using?
cucumber/gherkin 32.0.0; no other versions should be relevant
🔬 How could we reproduce it?
Build cpp/
with CMake in the usual way, setting -DBUILD_SHARED_LIBS:BOOL=ON
. Observe that this produces:
${builddir}/src/lib/gherkin/libcucumber_gherkin.so.30.0.4
${builddir}/src/lib/gherkin/libcucumber_gherkin.so.30
${builddir}/src/lib/gherkin/libcucumber_gherkin.so
when the contents of VERSION
are
32.0.0
📚 Any additional context?
It looks like cpp/CMakeLists.txt
needs the same boilerplate as c/CMakeLists.txt
:
Lines 1 to 18 in 275322f
Activity